home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac 1993 September / September 93.iso / Archives / Applications / Text / Bibliography / references & Bibs / HyperBib / HyperBibTeX Utils < prev    next >
MacBinary  |  1992-12-11  |  267.0 KB  |  [STAK/WILD]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert HyperCard Stack (archive/hypercard) idMeta Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Tue Jun 16 07:14:16 1992, modified Fri Dec 11 04:20:52 1992, creator HyperCard, type HyperCard stack, 191232 bytes "HyperBibTeX Utils" , at 0x2eb80 81924 bytes resource default (weak)
99% file data default
74% TrID Mac HyperCard stack (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[STAK]
macFileCreator[WILD]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 48 79 70 65 72 42 | 69 62 54 65 58 20 55 74 |..HyperB|ibTeX Ut|
|00000010| 69 6c 73 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ils.....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 01 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 02 eb 00 00 | 01 40 04 a6 63 7d 88 a7 |........|.@..c}..|
|00000060| 4e 0d f4 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |N.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 0d b8 00 00 |........|........|
|00000080| 00 00 70 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..p.STAK|........|
|00000090| 00 00 00 0a 00 02 eb 00 | 00 00 70 00 00 00 00 00 |........|..p.....|
|000000a0| 00 00 00 00 00 00 00 0e | 00 00 0a fa 00 00 00 0e |........|........|
|000000b0| 00 00 0b da 00 00 2a 41 | 00 00 00 00 00 00 00 00 |......*A|........|
|000000c0| 00 00 29 7d 00 00 00 00 | 00 05 00 00 50 00 00 00 |..)}....|....P...|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 10 80 00 02 10 80 00 | 02 10 80 00 02 10 80 00 |........|........|
|000000f0| 9b b1 07 16 00 00 00 00 | 00 a1 00 30 01 f7 02 30 |........|...0...0|
|00000100| 00 00 00 00 03 66 02 80 | 00 00 00 00 00 00 00 00 |.....f..|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d a6 00 00 0c 9c | 01 56 02 00 00 00 00 00 |........|.V......|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|00000690| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|000006a0| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|000006b0| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|000006c0| b0 b0 b0 b0 b0 b0 b0 0d | 48 79 70 65 72 42 69 62 |........|HyperBib|
|000006d0| 54 65 58 20 55 74 69 6c | 69 74 69 65 73 0d 56 65 |TeX Util|ities.Ve|
|000006e0| 72 73 69 6f 6e 20 30 2e | 39 2e 35 64 0d 31 32 2d |rsion 0.|9.5d.12-|
|000006f0| 4e 6f 76 2d 39 32 0d 0d | a9 43 6f 70 79 72 69 67 |Nov-92..|.Copyrig|
|00000700| 68 74 20 31 39 39 32 20 | 53 75 6d 6d 65 72 20 49 |ht 1992 |Summer I|
|00000710| 6e 73 74 69 74 75 74 65 | 20 6f 66 20 4c 69 6e 67 |nstitute| of Ling|
|00000720| 75 69 73 74 69 63 73 2c | 20 49 6e 63 2e 0d 41 6c |uistics,| Inc..Al|
|00000730| 6c 20 52 69 67 68 74 73 | 20 52 65 73 65 72 76 65 |l Rights| Reserve|
|00000740| 64 2e 0d 0d 42 61 63 6b | 67 72 6f 75 6e 64 73 20 |d...Back|grounds |
|00000750| 69 6e 20 74 68 69 73 20 | 73 74 61 63 6b 3a 0d 48 |in this |stack:.H|
|00000760| 79 70 65 72 42 69 62 54 | 65 58 20 55 74 69 6c 73 |yperBibT|eX Utils|
|00000770| 2c 20 41 72 74 69 63 6c | 65 2c 20 42 6f 6f 6b 2c |, Articl|e, Book,|
|00000780| 20 50 72 6f 63 65 65 64 | 69 6e 67 73 2c 20 49 6e | Proceed|ings, In|
|00000790| 42 6f 6f 6b 2c 20 49 6e | 43 6f 6c 6c 65 63 74 69 |Book, In|Collecti|
|000007a0| 6f 6e 2c 0d 49 6e 50 72 | 6f 63 65 65 64 69 6e 67 |on,.InPr|oceeding|
|000007b0| 73 2c 20 4d 61 73 74 65 | 72 73 54 68 65 73 69 73 |s, Maste|rsThesis|
|000007c0| 2c 20 50 68 44 54 68 65 | 73 69 73 2c 20 54 65 63 |, PhDThe|sis, Tec|
|000007d0| 68 52 65 70 6f 72 74 2c | 20 4d 61 6e 75 61 6c 2c |hReport,| Manual,|
|000007e0| 20 55 6e 70 75 62 6c 69 | 73 68 65 64 2c 0d 42 6f | Unpubli|shed,.Bo|
|000007f0| 6f 6b 6c 65 74 2c 20 4d | 69 73 63 0d b0 b0 b0 b0 |oklet, M|isc.....|
|00000800| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|00000810| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|00000820| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|00000830| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|00000840| b0 b0 b0 0d 0d 6f 6e 20 | 74 65 73 74 54 65 78 74 |.....on |testText|
|00000850| 6f 69 64 45 72 72 6f 72 | 20 57 68 61 74 0d 69 66 |oidError| What.if|
|00000860| 20 57 68 61 74 20 ad 20 | 65 6d 70 74 79 20 74 68 | What . |empty th|
|00000870| 65 6e 0d 62 65 65 70 0d | 61 6e 73 77 65 72 20 57 |en.beep.|answer W|
|00000880| 68 61 74 0d 65 78 69 74 | 20 74 6f 20 48 79 70 65 |hat.exit| to Hype|
|00000890| 72 43 61 72 64 0d 65 6e | 64 20 69 66 0d 65 6e 64 |rCard.en|d if.end|
|000008a0| 20 74 65 73 74 54 65 78 | 74 6f 69 64 45 72 72 6f | testTex|toidErro|
|000008b0| 72 0d 0d 6f 6e 20 6f 70 | 65 6e 54 65 78 74 6f 69 |r..on op|enTextoi|
|000008c0| 64 20 77 6e 61 6d 65 0d | 67 6c 6f 62 61 6c 20 61 |d wname.|global a|
|000008d0| 6e 6e 6f 74 65 52 65 63 | 74 2c 75 73 65 72 46 69 |nnoteRec|t,userFi|
|000008e0| 65 6c 64 73 52 65 63 74 | 0d 73 65 74 20 6c 6f 63 |eldsRect|.set loc|
|000008f0| 6b 74 65 78 74 20 6f 66 | 20 77 69 6e 64 6f 77 20 |ktext of| window |
|00000900| 77 6e 61 6d 65 20 74 6f | 20 66 61 6c 73 65 0d 69 |wname to| false.i|
|00000910| 66 20 77 6e 61 6d 65 20 | 69 73 20 22 41 6e 6e 6f |f wname |is "Anno|
|00000920| 74 61 74 69 6f 6e 22 20 | 74 68 65 6e 20 73 65 74 |tation" |then set|
|00000930| 20 72 65 63 74 20 6f 66 | 20 77 69 6e 64 6f 77 20 | rect of| window |
|00000940| 22 41 6e 6e 6f 74 61 74 | 69 6f 6e 22 20 74 6f 20 |"Annotat|ion" to |
|00000950| 61 6e 6e 6f 74 65 52 65 | 63 74 0d 65 6c 73 65 20 |annoteRe|ct.else |
|00000960| 69 66 20 77 6e 61 6d 65 | 20 69 73 20 22 55 73 65 |if wname| is "Use|
|00000970| 72 20 46 69 65 6c 64 73 | 22 20 74 68 65 6e 20 73 |r Fields|" then s|
|00000980| 65 74 20 72 65 63 74 20 | 6f 66 20 77 69 6e 64 6f |et rect |of windo|
|00000990| 77 20 22 55 73 65 72 20 | 46 69 65 6c 64 73 22 20 |w "User |Fields" |
|000009a0| 74 6f 20 75 73 65 72 46 | 69 65 6c 64 73 52 65 63 |to userF|ieldsRec|
|000009b0| 74 0d 65 6e 64 20 6f 70 | 65 6e 54 65 78 74 6f 69 |t.end op|enTextoi|
|000009c0| 64 0d 0d 6f 6e 20 63 6c | 6f 73 65 54 65 78 74 6f |d..on cl|oseTexto|
|000009d0| 69 64 20 77 6e 61 6d 65 | 0d 67 6c 6f 62 61 6c 20 |id wname|.global |
|000009e0| 61 6e 6e 6f 74 65 52 65 | 63 74 2c 75 73 65 72 46 |annoteRe|ct,userF|
|000009f0| 69 65 6c 64 73 52 65 63 | 74 0d 69 66 20 77 6e 61 |ieldsRec|t.if wna|
|00000a00| 6d 65 20 69 73 20 22 41 | 6e 6e 6f 74 61 74 69 6f |me is "A|nnotatio|
|00000a10| 6e 22 20 74 68 65 6e 0d | 70 75 74 20 74 65 78 74 |n" then.|put text|
|00000a20| 20 6f 66 20 77 69 6e 64 | 6f 77 20 22 41 6e 6e 6f | of wind|ow "Anno|
|00000a30| 74 61 74 69 6f 6e 22 20 | 69 6e 74 6f 20 66 6c 64 |tation" |into fld|
|00000a40| 20 22 41 6e 6e 6f 74 65 | 22 0d 73 65 6e 64 20 63 | "Annote|".send c|
|00000a50| 6c 6f 73 65 46 69 65 6c | 64 20 74 6f 20 66 6c 64 |loseFiel|d to fld|
|00000a60| 20 22 41 6e 6e 6f 74 65 | 22 0d 69 66 20 66 6c 64 | "Annote|".if fld|
|00000a70| 20 22 41 6e 6e 6f 74 65 | 22 20 69 73 20 6e 6f 74 | "Annote|" is not|
|00000a80| 20 65 6d 70 74 79 20 74 | 68 65 6e 20 73 65 74 20 | empty t|hen set |
|00000a90| 74 65 78 74 73 74 79 6c | 65 20 6f 66 20 62 67 20 |textstyl|e of bg |
|00000aa0| 62 74 6e 20 22 41 6e 6e | 6f 74 61 74 69 6f 6e 22 |btn "Ann|otation"|
|00000ab0| 20 74 6f 20 75 6e 64 65 | 72 6c 69 6e 65 0d 65 6c | to unde|rline.el|
|00000ac0| 73 65 20 73 65 74 20 74 | 65 78 74 73 74 79 6c 65 |se set t|extstyle|
|00000ad0| 20 6f 66 20 62 67 20 62 | 74 6e 20 22 41 6e 6e 6f | of bg b|tn "Anno|
|00000ae0| 74 61 74 69 6f 6e 22 20 | 74 6f 20 70 6c 61 69 6e |tation" |to plain|
|00000af0| 0d 70 75 74 20 72 65 63 | 74 20 6f 66 20 77 69 6e |.put rec|t of win|
|00000b00| 64 6f 77 20 22 41 6e 6e | 6f 74 61 74 69 6f 6e 22 |dow "Ann|otation"|
|00000b10| 20 69 6e 74 6f 20 61 6e | 6e 6f 74 65 52 65 63 74 | into an|noteRect|
|00000b20| 0d 65 6c 73 65 20 69 66 | 20 77 6e 61 6d 65 20 69 |.else if| wname i|
|00000b30| 73 20 22 55 73 65 72 20 | 46 69 65 6c 64 73 22 20 |s "User |Fields" |
|00000b40| 74 68 65 6e 0d 70 75 74 | 20 74 65 78 74 20 6f 66 |then.put| text of|
|00000b50| 20 77 69 6e 64 6f 77 20 | 22 55 73 65 72 20 46 69 | window |"User Fi|
|00000b60| 65 6c 64 73 22 20 69 6e | 74 6f 20 66 6c 64 20 22 |elds" in|to fld "|
|00000b70| 55 73 65 72 20 46 69 65 | 6c 64 73 22 0d 73 65 6e |User Fie|lds".sen|
|00000b80| 64 20 63 6c 6f 73 65 46 | 69 65 6c 64 20 74 6f 20 |d closeF|ield to |
|00000b90| 66 6c 64 20 22 55 73 65 | 72 20 46 69 65 6c 64 73 |fld "Use|r Fields|
|00000ba0| 22 0d 69 66 20 66 6c 64 | 20 22 55 73 65 72 20 46 |".if fld| "User F|
|00000bb0| 69 65 6c 64 73 22 20 69 | 73 20 6e 6f 74 20 65 6d |ields" i|s not em|
|00000bc0| 70 74 79 20 74 68 65 6e | 20 73 65 74 20 74 65 78 |pty then| set tex|
|00000bd0| 74 73 74 79 6c 65 20 6f | 66 20 62 67 20 62 74 6e |tstyle o|f bg btn|
|00000be0| 20 22 55 73 65 72 20 46 | 69 65 6c 64 73 22 20 74 | "User F|ields" t|
|00000bf0| 6f 20 75 6e 64 65 72 6c | 69 6e 65 0d 65 6c 73 65 |o underl|ine.else|
|00000c00| 20 73 65 74 20 74 65 78 | 74 73 74 79 6c 65 20 6f | set tex|tstyle o|
|00000c10| 66 20 62 67 20 62 74 6e | 20 22 55 73 65 72 20 46 |f bg btn| "User F|
|00000c20| 69 65 6c 64 73 22 20 74 | 6f 20 70 6c 61 69 6e 0d |ields" t|o plain.|
|00000c30| 70 75 74 20 72 65 63 74 | 20 6f 66 20 77 69 6e 64 |put rect| of wind|
|00000c40| 6f 77 20 22 55 73 65 72 | 20 46 69 65 6c 64 73 22 |ow "User| Fields"|
|00000c50| 20 69 6e 74 6f 20 75 73 | 65 72 46 69 65 6c 64 73 | into us|erFields|
|00000c60| 52 65 63 74 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |Rect.end| if.end |
|00000c70| 63 6c 6f 73 65 54 65 78 | 74 6f 69 64 0d 0d 2d 2d |closeTex|toid..--|
|00000c80| 20 69 66 20 77 72 6f 6e | 67 73 74 61 63 6b 28 29 | if wron|gstack()|
|00000c90| 20 74 68 65 6e 20 65 78 | 69 74 20 3c 68 61 6e 64 | then ex|it <hand|
|00000ca0| 6c 65 72 3e 0d 2d 2d 66 | 75 6e 63 74 69 6f 6e 20 |ler>.--f|unction |
|00000cb0| 77 72 6f 6e 67 73 74 61 | 63 6b 0d 67 65 74 20 76 |wrongsta|ck.get v|
|00000cc0| 61 6c 75 65 20 6f 66 20 | 28 77 6f 72 64 20 32 20 |alue of |(word 2 |
|00000cd0| 6f 66 20 28 6c 6f 6e 67 | 20 6e 61 6d 65 20 6f 66 |of (long| name of|
|00000ce0| 20 74 68 69 73 20 73 74 | 61 63 6b 29 29 0d 72 65 | this st|ack)).re|
|00000cf0| 74 75 72 6e 20 28 69 74 | 20 69 73 20 6e 6f 74 20 |turn (it| is not |
|00000d00| 69 6e 20 28 6c 69 6e 65 | 20 31 20 6f 66 20 74 68 |in (line| 1 of th|
|00000d10| 65 20 73 74 61 63 6b 73 | 29 29 0d 65 6e 64 20 77 |e stacks|)).end w|
|00000d20| 72 6f 6e 67 73 74 61 63 | 6b 0d 0d 66 75 6e 63 74 |rongstac|k..funct|
|00000d30| 69 6f 6e 20 6c 61 73 74 | 43 68 75 6e 6b 20 64 65 |ion last|Chunk de|
|00000d40| 6c 69 6d 2c 74 68 65 54 | 65 78 74 0d 2d 2d 20 67 |lim,theT|ext.-- g|
|00000d50| 6f 6f 64 20 66 6f 72 20 | 73 65 70 61 72 61 74 69 |ood for |separati|
|00000d60| 6e 67 20 61 20 66 69 6c | 65 20 6e 61 6d 65 20 66 |ng a fil|e name f|
|00000d70| 72 6f 6d 20 61 6e 20 65 | 6e 74 69 72 65 20 70 61 |rom an e|ntire pa|
|00000d80| 74 68 6e 61 6d 65 0d 69 | 66 20 64 65 6c 69 6d 20 |thname.i|f delim |
|00000d90| 69 73 20 69 6e 20 74 68 | 65 54 65 78 74 0d 74 68 |is in th|eText.th|
|00000da0| 65 6e 20 70 75 74 20 6c | 61 73 74 43 68 75 6e 6b |en put l|astChunk|
|00000db0| 28 64 65 6c 69 6d 2c 63 | 68 61 72 20 6f 66 66 73 |(delim,c|har offs|
|00000dc0| 65 74 28 64 65 6c 69 6d | 2c 74 68 65 54 65 78 74 |et(delim|,theText|
|00000dd0| 29 20 2b 20 31 20 74 6f | 20 6c 65 6e 67 74 68 28 |) + 1 to| length(|
|00000de0| 74 68 65 54 65 78 74 29 | 20 6f 66 20 74 68 65 54 |theText)| of theT|
|00000df0| 65 78 74 29 20 69 6e 74 | 6f 20 74 68 65 54 65 78 |ext) int|o theTex|
|00000e00| 74 0d 72 65 74 75 72 6e | 20 74 68 65 54 65 78 74 |t.return| theText|
|00000e10| 0d 65 6e 64 20 6c 61 73 | 74 43 68 75 6e 6b 0d 0d |.end las|tChunk..|
|00000e20| 66 75 6e 63 74 69 6f 6e | 20 66 69 72 73 74 43 68 |function| firstCh|
|00000e30| 75 6e 6b 20 64 65 6c 69 | 6d 2c 74 68 65 54 65 78 |unk deli|m,theTex|
|00000e40| 74 0d 69 66 20 64 65 6c | 69 6d 20 69 73 20 69 6e |t.if del|im is in|
|00000e50| 20 74 68 65 54 65 78 74 | 0d 74 68 65 6e 20 70 75 | theText|.then pu|
|00000e60| 74 20 63 68 61 72 20 31 | 20 74 6f 20 6f 66 66 73 |t char 1| to offs|
|00000e70| 65 74 28 64 65 6c 69 6d | 2c 74 68 65 54 65 78 74 |et(delim|,theText|
|00000e80| 29 20 2d 31 20 6f 66 20 | 74 68 65 54 65 78 74 20 |) -1 of |theText |
|00000e90| 69 6e 74 6f 20 74 68 65 | 54 65 78 74 0d 72 65 74 |into the|Text.ret|
|00000ea0| 75 72 6e 20 74 68 65 54 | 65 78 74 0d 65 6e 64 20 |urn theT|ext.end |
|00000eb0| 66 69 72 73 74 43 68 75 | 6e 6b 0d 0d a5 a5 a5 a5 |firstChu|nk......|
|00000ec0| a5 a5 20 56 61 6c 69 64 | 20 45 6e 74 72 79 20 50 |.. Valid| Entry P|
|00000ed0| 61 63 6b 61 67 65 0d a5 | a5 a5 a5 a5 a5 20 56 65 |ackage..|..... Ve|
|00000ee0| 72 73 69 6f 6e 20 31 2e | 34 20 2d 2d 20 46 6f 72 |rsion 1.|4 -- For|
|00000ef0| 20 75 73 65 20 77 69 74 | 68 20 66 6f 72 20 48 79 | use wit|h for Hy|
|00000f00| 70 65 72 43 61 72 64 20 | 32 2e 30 20 61 6e 64 20 |perCard |2.0 and |
|00000f10| 6c 61 74 65 72 2e 0d a5 | a5 a5 a5 a5 a5 20 4a 75 |later...|..... Ju|
|00000f20| 6e 65 20 32 36 2c 20 31 | 39 39 31 0d a5 a5 a5 a5 |ne 26, 1|991.....|
|00000f30| a5 a5 20 42 79 20 43 68 | 72 69 73 20 54 68 6f 72 |.. By Ch|ris Thor|
|00000f40| 6d 61 6e 2c 20 41 70 70 | 6c 65 20 43 6f 6d 70 75 |man, App|le Compu|
|00000f50| 74 65 72 2c 20 49 6e 63 | 2e 0d a5 a5 a5 a5 a5 a5 |ter, Inc|........|
|00000f60| 0d a5 a5 a5 a5 a5 a5 20 | 46 72 65 65 20 61 73 20 |....... |Free as |
|00000f70| 6c 6f 6e 67 20 61 73 20 | 79 6f 75 20 6b 65 65 70 |long as |you keep|
|00000f80| 20 74 68 65 20 66 69 72 | 73 74 20 73 69 78 20 6c | the fir|st six l|
|00000f90| 69 6e 65 73 20 6f 66 20 | 74 68 69 73 20 6d 65 73 |ines of |this mes|
|00000fa0| 73 61 67 65 20 69 6e 74 | 61 63 74 2e 0d 2d 2d 20 |sage int|act..-- |
|00000fb0| 73 6f 6d 65 20 6c 6f 63 | 61 6c 20 6d 6f 64 69 66 |some loc|al modif|
|00000fc0| 69 63 61 74 69 6f 6e 73 | 20 68 61 76 65 20 62 65 |ications| have be|
|00000fd0| 65 6e 20 6d 61 64 65 0d | 0d 6f 6e 20 52 65 6d 6f |en made.|.on Remo|
|00000fe0| 76 65 42 6c 61 6e 6b 4c | 69 6e 65 73 0d 70 75 74 |veBlankL|ines.put|
|00000ff0| 20 74 61 72 67 65 74 20 | 69 6e 74 6f 20 4d 79 56 | target |into MyV|
|00001000| 61 6c 0d 2d 2d 20 72 65 | 70 65 61 74 20 77 69 74 |al.-- re|peat wit|
|00001010| 68 20 4c 69 6e 65 4e 75 | 6d 20 3d 20 74 68 65 20 |h LineNu|m = the |
|00001020| 6e 75 6d 62 65 72 20 6f | 66 20 6c 69 6e 65 73 20 |number o|f lines |
|00001030| 69 6e 20 4d 79 56 61 6c | 20 64 6f 77 6e 20 74 6f |in MyVal| down to|
|00001040| 20 31 0d 2d 2d 20 69 66 | 20 6c 69 6e 65 20 4c 69 | 1.-- if| line Li|
|00001050| 6e 65 4e 75 6d 20 6f 66 | 20 4d 79 56 61 6c 20 69 |neNum of| MyVal i|
|00001060| 73 20 65 6d 70 74 79 20 | 74 68 65 6e 20 64 65 6c |s empty |then del|
|00001070| 65 74 65 20 6c 69 6e 65 | 20 4c 69 6e 65 4e 75 6d |ete line| LineNum|
|00001080| 20 6f 66 20 4d 79 56 61 | 6c 0d 2d 2d 20 65 6e 64 | of MyVa|l.-- end|
|00001090| 20 72 65 70 65 61 74 0d | 70 75 74 20 31 20 69 6e | repeat.|put 1 in|
|000010a0| 74 6f 20 70 6f 73 0d 72 | 65 70 65 61 74 0d 70 75 |to pos.r|epeat.pu|
|000010b0| 74 20 66 75 6c 6c 4f 66 | 66 73 65 74 28 72 65 74 |t fullOf|fset(ret|
|000010c0| 75 72 6e 26 72 65 74 75 | 72 6e 2c 4d 79 56 61 6c |urn&retu|rn,MyVal|
|000010d0| 2c 70 6f 73 29 20 69 6e | 74 6f 20 70 6f 73 0d 69 |,pos) in|to pos.i|
|000010e0| 66 20 70 6f 73 20 3d 20 | 30 20 74 68 65 6e 20 65 |f pos = |0 then e|
|000010f0| 78 69 74 20 72 65 70 65 | 61 74 0d 70 75 74 20 72 |xit repe|at.put r|
|00001100| 65 74 75 72 6e 20 69 6e | 74 6f 20 63 68 61 72 20 |eturn in|to char |
|00001110| 70 6f 73 20 74 6f 20 70 | 6f 73 20 2b 20 31 20 6f |pos to p|os + 1 o|
|00001120| 66 20 4d 79 56 61 6c 0d | 65 6e 64 20 72 65 70 65 |f MyVal.|end repe|
|00001130| 61 74 0d 69 66 20 74 68 | 65 20 66 69 72 73 74 20 |at.if th|e first |
|00001140| 63 68 61 72 20 6f 66 20 | 4d 79 56 61 6c 20 69 73 |char of |MyVal is|
|00001150| 20 72 65 74 75 72 6e 20 | 74 68 65 6e 20 64 65 6c | return |then del|
|00001160| 65 74 65 20 66 69 72 73 | 74 20 63 68 61 72 20 6f |ete firs|t char o|
|00001170| 66 20 4d 79 56 61 6c 0d | 69 66 20 74 68 65 20 6c |f MyVal.|if the l|
|00001180| 61 73 74 20 63 68 61 72 | 20 6f 66 20 4d 79 56 61 |ast char| of MyVa|
|00001190| 6c 20 69 73 20 72 65 74 | 75 72 6e 20 74 68 65 6e |l is ret|urn then|
|000011a0| 20 64 65 6c 65 74 65 20 | 6c 61 73 74 20 63 68 61 | delete |last cha|
|000011b0| 72 20 6f 66 20 4d 79 56 | 61 6c 0d 70 75 74 20 4d |r of MyV|al.put M|
|000011c0| 79 56 61 6c 20 69 6e 74 | 6f 20 74 68 65 20 74 61 |yVal int|o the ta|
|000011d0| 72 67 65 74 0d 65 6e 64 | 20 52 65 6d 6f 76 65 42 |rget.end| RemoveB|
|000011e0| 6c 61 6e 6b 4c 69 6e 65 | 73 0d 0d 6f 6e 20 52 65 |lankLine|s..on Re|
|000011f0| 6d 6f 76 65 4c 65 61 64 | 69 6e 67 53 70 61 63 65 |moveLead|ingSpace|
|00001200| 73 0d 70 75 74 20 74 61 | 72 67 65 74 20 69 6e 74 |s.put ta|rget int|
|00001210| 6f 20 4d 79 56 61 6c 0d | 72 65 70 65 61 74 20 77 |o MyVal.|repeat w|
|00001220| 68 69 6c 65 20 63 68 61 | 72 20 31 20 6f 66 20 4d |hile cha|r 1 of M|
|00001230| 79 56 61 6c 20 69 73 20 | 73 70 61 63 65 0d 64 65 |yVal is |space.de|
|00001240| 6c 65 74 65 20 63 68 61 | 72 20 31 20 6f 66 20 4d |lete cha|r 1 of M|
|00001250| 79 56 61 6c 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |yVal.end| repeat.|
|00001260| 70 75 74 20 4d 79 56 61 | 6c 20 69 6e 74 6f 20 74 |put MyVa|l into t|
|00001270| 68 65 20 74 61 72 67 65 | 74 0d 65 6e 64 20 52 65 |he targe|t.end Re|
|00001280| 6d 6f 76 65 4c 65 61 64 | 69 6e 67 53 70 61 63 65 |moveLead|ingSpace|
|00001290| 73 0d 0d 6f 6e 20 52 65 | 6d 6f 76 65 54 72 61 69 |s..on Re|moveTrai|
|000012a0| 6c 69 6e 67 53 70 61 63 | 65 73 0d 70 75 74 20 74 |lingSpac|es.put t|
|000012b0| 61 72 67 65 74 20 69 6e | 74 6f 20 4d 79 56 61 6c |arget in|to MyVal|
|000012c0| 0d 72 65 70 65 61 74 20 | 77 68 69 6c 65 20 6c 61 |.repeat |while la|
|000012d0| 73 74 20 63 68 61 72 20 | 6f 66 20 4d 79 56 61 6c |st char |of MyVal|
|000012e0| 20 69 73 20 73 70 61 63 | 65 0d 64 65 6c 65 74 65 | is spac|e.delete|
|000012f0| 20 6c 61 73 74 20 63 68 | 61 72 20 6f 66 20 4d 79 | last ch|ar of My|
|00001300| 56 61 6c 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 70 |Val.end |repeat.p|
|00001310| 75 74 20 4d 79 56 61 6c | 20 69 6e 74 6f 20 74 68 |ut MyVal| into th|
|00001320| 65 20 74 61 72 67 65 74 | 0d 65 6e 64 20 52 65 6d |e target|.end Rem|
|00001330| 6f 76 65 54 72 61 69 6c | 69 6e 67 53 70 61 63 65 |oveTrail|ingSpace|
|00001340| 73 0d 0d 6f 6e 20 52 65 | 6d 6f 76 65 53 70 61 63 |s..on Re|moveSpac|
|00001350| 65 73 41 74 42 65 67 69 | 6e 6e 69 6e 67 73 4f 66 |esAtBegi|nningsOf|
|00001360| 4c 69 6e 65 73 0d 70 75 | 74 20 74 61 72 67 65 74 |Lines.pu|t target|
|00001370| 20 69 6e 74 6f 20 4d 79 | 56 61 6c 0d 70 75 74 20 | into My|Val.put |
|00001380| 72 65 74 75 72 6e 26 6d | 79 56 61 6c 20 69 6e 74 |return&m|yVal int|
|00001390| 6f 20 4d 79 56 61 6c 0d | 70 75 74 20 31 20 69 6e |o MyVal.|put 1 in|
|000013a0| 74 6f 20 70 6f 73 0d 72 | 65 70 65 61 74 0d 70 75 |to pos.r|epeat.pu|
|000013b0| 74 20 66 75 6c 6c 4f 66 | 66 73 65 74 28 72 65 74 |t fullOf|fset(ret|
|000013c0| 75 72 6e 26 73 70 61 63 | 65 2c 4d 79 56 61 6c 2c |urn&spac|e,MyVal,|
|000013d0| 70 6f 73 29 20 69 6e 74 | 6f 20 70 6f 73 0d 69 66 |pos) int|o pos.if|
|000013e0| 20 70 6f 73 20 3d 20 30 | 20 74 68 65 6e 20 65 78 | pos = 0| then ex|
|000013f0| 69 74 20 72 65 70 65 61 | 74 0d 70 75 74 20 72 65 |it repea|t.put re|
|00001400| 74 75 72 6e 20 69 6e 74 | 6f 20 63 68 61 72 20 70 |turn int|o char p|
|00001410| 6f 73 20 74 6f 20 70 6f | 73 20 2b 20 31 20 6f 66 |os to po|s + 1 of|
|00001420| 20 4d 79 56 61 6c 0d 65 | 6e 64 20 72 65 70 65 61 | MyVal.e|nd repea|
|00001430| 74 0d 64 65 6c 65 74 65 | 20 63 68 61 72 20 31 20 |t.delete| char 1 |
|00001440| 6f 66 20 4d 79 56 61 6c | 0d 70 75 74 20 4d 79 56 |of MyVal|.put MyV|
|00001450| 61 6c 20 69 6e 74 6f 20 | 74 68 65 20 74 61 72 67 |al into |the targ|
|00001460| 65 74 0d 65 6e 64 20 52 | 65 6d 6f 76 65 53 70 61 |et.end R|emoveSpa|
|00001470| 63 65 73 41 74 42 65 67 | 69 6e 6e 69 6e 67 73 4f |cesAtBeg|inningsO|
|00001480| 66 4c 69 6e 65 73 0d 0d | 6f 6e 20 52 65 6d 6f 76 |fLines..|on Remov|
|00001490| 65 53 70 61 63 65 73 41 | 74 45 6e 64 73 4f 66 4c |eSpacesA|tEndsOfL|
|000014a0| 69 6e 65 73 0d 70 75 74 | 20 74 61 72 67 65 74 20 |ines.put| target |
|000014b0| 69 6e 74 6f 20 4d 79 56 | 61 6c 0d 70 75 74 20 6d |into MyV|al.put m|
|000014c0| 79 56 61 6c 26 72 65 74 | 75 72 6e 20 69 6e 74 6f |yVal&ret|urn into|
|000014d0| 20 4d 79 56 61 6c 0d 70 | 75 74 20 31 20 69 6e 74 | MyVal.p|ut 1 int|
|000014e0| 6f 20 70 6f 73 0d 72 65 | 70 65 61 74 0d 70 75 74 |o pos.re|peat.put|
|000014f0| 20 66 75 6c 6c 4f 66 66 | 73 65 74 28 73 70 61 63 | fullOff|set(spac|
|00001500| 65 26 72 65 74 75 72 6e | 2c 4d 79 56 61 6c 2c 70 |e&return|,MyVal,p|
|00001510| 6f 73 29 20 69 6e 74 6f | 20 70 6f 73 0d 69 66 20 |os) into| pos.if |
|00001520| 70 6f 73 20 3d 20 30 20 | 74 68 65 6e 20 65 78 69 |pos = 0 |then exi|
|00001530| 74 20 72 65 70 65 61 74 | 0d 70 75 74 20 72 65 74 |t repeat|.put ret|
|00001540| 75 72 6e 20 69 6e 74 6f | 20 63 68 61 72 20 70 6f |urn into| char po|
|00001550| 73 20 74 6f 20 70 6f 73 | 20 2b 20 31 20 6f 66 20 |s to pos| + 1 of |
|00001560| 4d 79 56 61 6c 0d 65 6e | 64 20 72 65 70 65 61 74 |MyVal.en|d repeat|
|00001570| 0d 64 65 6c 65 74 65 20 | 6c 61 73 74 20 63 68 61 |.delete |last cha|
|00001580| 72 20 6f 66 20 4d 79 56 | 61 6c 0d 70 75 74 20 4d |r of MyV|al.put M|
|00001590| 79 56 61 6c 20 69 6e 74 | 6f 20 74 68 65 20 74 61 |yVal int|o the ta|
|000015a0| 72 67 65 74 0d 65 6e 64 | 20 52 65 6d 6f 76 65 53 |rget.end| RemoveS|
|000015b0| 70 61 63 65 73 41 74 45 | 6e 64 73 4f 66 4c 69 6e |pacesAtE|ndsOfLin|
|000015c0| 65 73 0d 0d 6f 6e 20 52 | 65 74 75 72 6e 73 54 6f |es..on R|eturnsTo|
|000015d0| 53 70 61 63 65 73 0d 70 | 75 74 20 74 61 72 67 65 |Spaces.p|ut targe|
|000015e0| 74 20 69 6e 74 6f 20 4d | 79 56 61 6c 0d 70 75 74 |t into M|yVal.put|
|000015f0| 20 31 20 69 6e 74 6f 20 | 70 6f 73 0d 72 65 70 65 | 1 into |pos.repe|
|00001600| 61 74 0d 70 75 74 20 66 | 75 6c 6c 4f 66 66 73 65 |at.put f|ullOffse|
|00001610| 74 28 72 65 74 75 72 6e | 2c 4d 79 56 61 6c 2c 70 |t(return|,MyVal,p|
|00001620| 6f 73 29 20 69 6e 74 6f | 20 70 6f 73 0d 69 66 20 |os) into| pos.if |
|00001630| 70 6f 73 20 3d 20 30 20 | 74 68 65 6e 20 65 78 69 |pos = 0 |then exi|
|00001640| 74 20 72 65 70 65 61 74 | 0d 70 75 74 20 73 70 61 |t repeat|.put spa|
|00001650| 63 65 20 69 6e 74 6f 20 | 63 68 61 72 20 70 6f 73 |ce into |char pos|
|00001660| 20 6f 66 20 4d 79 56 61 | 6c 0d 65 6e 64 20 72 65 | of MyVa|l.end re|
|00001670| 70 65 61 74 0d 70 75 74 | 20 4d 79 56 61 6c 20 69 |peat.put| MyVal i|
|00001680| 6e 74 6f 20 74 68 65 20 | 74 61 72 67 65 74 0d 65 |nto the |target.e|
|00001690| 6e 64 20 52 65 74 75 72 | 6e 73 54 6f 53 70 61 63 |nd Retur|nsToSpac|
|000016a0| 65 73 0d 0d 6f 6e 20 52 | 65 6d 6f 76 65 45 78 74 |es..on R|emoveExt|
|000016b0| 72 61 53 70 61 63 65 73 | 0d 70 75 74 20 74 61 72 |raSpaces|.put tar|
|000016c0| 67 65 74 20 69 6e 74 6f | 20 4d 79 56 61 6c 0d 70 |get into| MyVal.p|
|000016d0| 75 74 20 31 20 69 6e 74 | 6f 20 70 6f 73 0d 72 65 |ut 1 int|o pos.re|
|000016e0| 70 65 61 74 0d 70 75 74 | 20 66 75 6c 6c 4f 66 66 |peat.put| fullOff|
|000016f0| 73 65 74 28 22 20 20 22 | 2c 4d 79 56 61 6c 2c 70 |set(" "|,MyVal,p|
|00001700| 6f 73 29 20 69 6e 74 6f | 20 70 6f 73 0d 69 66 20 |os) into| pos.if |
|00001710| 70 6f 73 20 3d 20 30 20 | 74 68 65 6e 20 65 78 69 |pos = 0 |then exi|
|00001720| 74 20 72 65 70 65 61 74 | 0d 70 75 74 20 73 70 61 |t repeat|.put spa|
|00001730| 63 65 20 69 6e 74 6f 20 | 63 68 61 72 20 70 6f 73 |ce into |char pos|
|00001740| 20 74 6f 20 70 6f 73 20 | 2b 20 31 20 6f 66 20 4d | to pos |+ 1 of M|
|00001750| 79 56 61 6c 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |yVal.end| repeat.|
|00001760| 70 75 74 20 4d 79 56 61 | 6c 20 69 6e 74 6f 20 74 |put MyVa|l into t|
|00001770| 68 65 20 74 61 72 67 65 | 74 0d 65 6e 64 20 52 65 |he targe|t.end Re|
|00001780| 6d 6f 76 65 45 78 74 72 | 61 53 70 61 63 65 73 0d |moveExtr|aSpaces.|
|00001790| 0d 6f 6e 20 43 6c 65 61 | 6e 55 70 52 65 74 75 72 |.on Clea|nUpRetur|
|000017a0| 6e 44 65 6c 69 6d 69 74 | 65 64 4c 69 73 74 0d 52 |nDelimit|edList.R|
|000017b0| 65 6d 6f 76 65 45 78 74 | 72 61 53 70 61 63 65 73 |emoveExt|raSpaces|
|000017c0| 0d 52 65 6d 6f 76 65 53 | 70 61 63 65 73 41 74 45 |.RemoveS|pacesAtE|
|000017d0| 6e 64 73 4f 66 4c 69 6e | 65 73 0d 52 65 6d 6f 76 |ndsOfLin|es.Remov|
|000017e0| 65 53 70 61 63 65 73 41 | 74 42 65 67 69 6e 6e 69 |eSpacesA|tBeginni|
|000017f0| 6e 67 73 4f 66 4c 69 6e | 65 73 0d 52 65 6d 6f 76 |ngsOfLin|es.Remov|
|00001800| 65 42 6c 61 6e 6b 4c 69 | 6e 65 73 0d 65 6e 64 20 |eBlankLi|nes.end |
|00001810| 43 6c 65 61 6e 55 70 52 | 65 74 75 72 6e 44 65 6c |CleanUpR|eturnDel|
|00001820| 69 6d 69 74 65 64 4c 69 | 73 74 0d 0d 6f 6e 20 56 |imitedLi|st..on V|
|00001830| 61 6c 69 64 61 74 65 49 | 6e 74 65 67 65 72 45 6e |alidateI|ntegerEn|
|00001840| 74 72 79 20 4c 6f 77 42 | 6f 75 6e 64 2c 20 48 69 |try LowB|ound, Hi|
|00001850| 67 68 42 6f 75 6e 64 2c | 20 4f 6c 64 56 61 6c 75 |ghBound,| OldValu|
|00001860| 65 0d 70 75 74 20 74 61 | 72 67 65 74 20 69 6e 74 |e.put ta|rget int|
|00001870| 6f 20 4e 65 77 56 61 6c | 75 65 0d 69 66 20 4c 6f |o NewVal|ue.if Lo|
|00001880| 77 42 6f 75 6e 64 20 69 | 73 20 65 6d 70 74 79 20 |wBound i|s empty |
|00001890| 74 68 65 6e 20 70 75 74 | 20 4e 65 77 56 61 6c 75 |then put| NewValu|
|000018a0| 65 20 69 6e 74 6f 20 4c | 6f 77 42 6f 75 6e 64 0d |e into L|owBound.|
|000018b0| 69 66 20 48 69 67 68 42 | 6f 75 6e 64 20 69 73 20 |if HighB|ound is |
|000018c0| 65 6d 70 74 79 20 74 68 | 65 6e 20 70 75 74 20 4e |empty th|en put N|
|000018d0| 65 77 56 61 6c 75 65 20 | 69 6e 74 6f 20 48 69 67 |ewValue |into Hig|
|000018e0| 68 42 6f 75 6e 64 0d 69 | 66 20 4e 65 77 56 61 6c |hBound.i|f NewVal|
|000018f0| 75 65 20 69 73 20 6e 6f | 74 20 61 6e 20 69 6e 74 |ue is no|t an int|
|00001900| 65 67 65 72 20 6f 72 20 | 4e 65 77 56 61 6c 75 65 |eger or |NewValue|
|00001910| 20 3c 20 4c 6f 77 42 6f | 75 6e 64 20 6f 72 20 4e | < LowBo|und or N|
|00001920| 65 77 56 61 6c 75 65 20 | 3e 20 48 69 67 68 42 6f |ewValue |> HighBo|
|00001930| 75 6e 64 0d 74 68 65 6e | 20 52 65 73 65 74 54 6f |und.then| ResetTo|
|00001940| 56 61 6c 69 64 56 61 6c | 75 65 20 4f 6c 64 56 61 |ValidVal|ue OldVa|
|00001950| 6c 75 65 0d 65 6e 64 20 | 56 61 6c 69 64 61 74 65 |lue.end |Validate|
|00001960| 49 6e 74 65 67 65 72 45 | 6e 74 72 79 0d 0d 6f 6e |IntegerE|ntry..on|
|00001970| 20 52 65 73 65 74 54 6f | 56 61 6c 69 64 56 61 6c | ResetTo|ValidVal|
|00001980| 75 65 20 56 61 6c 69 64 | 56 61 6c 75 65 4f 6e 45 |ue Valid|ValueOnE|
|00001990| 6e 74 72 79 0d 70 75 74 | 20 6c 69 6e 65 20 31 20 |ntry.put| line 1 |
|000019a0| 6f 66 20 56 61 6c 69 64 | 56 61 6c 75 65 4f 6e 45 |of Valid|ValueOnE|
|000019b0| 6e 74 72 79 20 69 6e 74 | 6f 20 52 65 70 6c 61 63 |ntry int|o Replac|
|000019c0| 65 54 65 78 74 0d 73 65 | 6e 64 20 22 44 6f 55 73 |eText.se|nd "DoUs|
|000019d0| 65 72 45 78 70 6c 61 6e | 61 74 69 6f 6e 22 26 26 |erExplan|ation"&&|
|000019e0| 22 d2 22 26 52 65 70 6c | 61 63 65 54 65 78 74 26 |"."&Repl|aceText&|
|000019f0| 22 d3 22 20 74 6f 20 74 | 68 65 20 74 61 72 67 65 |"." to t|he targe|
|00001a00| 74 0d 70 75 74 20 56 61 | 6c 69 64 56 61 6c 75 65 |t.put Va|lidValue|
|00001a10| 4f 6e 45 6e 74 72 79 20 | 69 6e 74 6f 20 74 68 65 |OnEntry |into the|
|00001a20| 20 74 61 72 67 65 74 0d | 65 6e 64 20 52 65 73 65 | target.|end Rese|
|00001a30| 74 54 6f 56 61 6c 69 64 | 56 61 6c 75 65 0d 0d 6f |tToValid|Value..o|
|00001a40| 6e 20 44 6f 55 73 65 72 | 45 78 70 6c 61 6e 61 74 |n DoUser|Explanat|
|00001a50| 69 6f 6e 20 54 68 65 52 | 65 70 6c 61 63 65 6d 65 |ion TheR|eplaceme|
|00001a60| 6e 74 56 61 6c 75 65 0d | 70 75 74 20 22 54 68 65 |ntValue.|put "The|
|00001a70| 20 76 61 6c 75 65 20 d2 | 22 26 74 61 72 67 65 74 | value .|"&target|
|00001a80| 26 22 d3 20 69 73 20 69 | 6e 76 61 6c 69 64 2e 22 |&". is i|nvalid."|
|00001a90| 26 72 65 74 75 72 6e 26 | 22 54 68 65 20 76 61 6c |&return&|"The val|
|00001aa0| 75 65 20 d2 22 26 c2 0d | 54 68 65 52 65 70 6c 61 |ue ."&..|TheRepla|
|00001ab0| 63 65 6d 65 6e 74 56 61 | 6c 75 65 26 22 d3 20 77 |cementVa|lue&". w|
|00001ac0| 69 6c 6c 20 62 65 20 6b | 65 70 74 2e 22 20 69 6e |ill be k|ept." in|
|00001ad0| 74 6f 20 65 78 70 6c 61 | 6e 61 74 69 6f 6e 0d 69 |to expla|nation.i|
|00001ae0| 66 20 74 68 65 20 6c 65 | 6e 67 74 68 20 6f 66 20 |f the le|ngth of |
|00001af0| 65 78 70 6c 61 6e 61 74 | 69 6f 6e 20 3e 20 32 34 |explanat|ion > 24|
|00001b00| 30 0d 74 68 65 6e 20 70 | 75 74 20 22 54 68 65 20 |0.then p|ut "The |
|00001b10| 76 61 6c 75 65 20 79 6f | 75 20 68 61 76 65 20 65 |value yo|u have e|
|00001b20| 6e 74 65 72 65 64 20 69 | 73 20 69 6e 76 61 6c 69 |ntered i|s invali|
|00001b30| 64 2e 22 26 72 65 74 75 | 72 6e 26 22 54 68 65 20 |d."&retu|rn&"The |
|00001b40| 66 69 65 6c 64 d5 73 20 | 22 26 c2 0d 22 6f 72 69 |field.s |"&.."ori|
|00001b50| 67 69 6e 61 6c 20 76 61 | 6c 75 65 20 77 69 6c 6c |ginal va|lue will|
|00001b60| 20 62 65 20 6b 65 70 74 | 2e 22 20 69 6e 74 6f 20 | be kept|." into |
|00001b70| 65 78 70 6c 61 6e 61 74 | 69 6f 6e 0d 61 6e 73 77 |explanat|ion.answ|
|00001b80| 65 72 20 65 78 70 6c 61 | 6e 61 74 69 6f 6e 0d 65 |er expla|nation.e|
|00001b90| 6e 64 20 44 6f 55 73 65 | 72 45 78 70 6c 61 6e 61 |nd DoUse|rExplana|
|00001ba0| 74 69 6f 6e 0d 0d a5 a5 | a5 a5 a5 a5 20 45 6e 64 |tion....|.... End|
|00001bb0| 20 56 61 6c 69 64 20 45 | 6e 74 72 79 20 50 61 63 | Valid E|ntry Pac|
|00001bc0| 6b 61 67 65 20 53 63 72 | 69 70 74 73 20 a5 a5 a5 |kage Scr|ipts ...|
|00001bd0| a5 a5 a5 0d 0d 0d 2d 2d | 2d 2d 2d 20 48 61 6e 64 |......--|--- Hand|
|00001be0| 6c 65 72 73 20 66 6f 72 | 20 76 65 72 69 66 79 69 |lers for| verifyi|
|00001bf0| 6e 67 20 66 69 65 6c 64 | 20 63 6f 6e 74 65 6e 74 |ng field| content|
|00001c00| 73 20 2d 2d 2d 2d 2d 0d | 0d 6f 6e 20 63 68 65 63 |s -----.|.on chec|
|00001c10| 6b 4b 65 79 0d 70 75 74 | 20 74 61 72 67 65 74 20 |kKey.put| target |
|00001c20| 69 6e 74 6f 20 6b 65 79 | 0d 70 75 74 20 66 69 72 |into key|.put fir|
|00001c30| 73 74 43 68 75 6e 6b 28 | 22 21 22 2c 6b 65 79 29 |stChunk(|"!",key)|
|00001c40| 20 69 6e 74 6f 20 65 6e | 74 72 79 4b 65 79 0d 69 | into en|tryKey.i|
|00001c50| 66 20 65 6e 74 72 79 4b | 65 79 20 69 73 20 65 6d |f entryK|ey is em|
|00001c60| 70 74 79 20 74 68 65 6e | 0d 75 6e 6c 6f 63 6b 20 |pty then|.unlock |
|00001c70| 73 63 72 65 65 6e 0d 62 | 65 65 70 0d 61 6e 73 77 |screen.b|eep.answ|
|00001c80| 65 72 20 22 54 68 65 20 | 45 6e 74 72 79 20 4b 65 |er "The |Entry Ke|
|00001c90| 79 20 69 73 20 65 6d 70 | 74 79 2e 22 20 77 69 74 |y is emp|ty." wit|
|00001ca0| 68 20 22 46 69 78 20 69 | 74 22 20 6f 72 20 22 4f |h "Fix i|t" or "O|
|00001cb0| 4b 22 0d 69 66 20 69 74 | 20 69 73 20 22 4f 4b 22 |K".if it| is "OK"|
|00001cc0| 20 74 68 65 6e 0d 73 65 | 74 20 63 75 72 73 6f 72 | then.se|t cursor|
|00001cd0| 20 74 6f 20 77 61 74 63 | 68 0d 6c 6f 63 6b 20 73 | to watc|h.lock s|
|00001ce0| 63 72 65 65 6e 0d 65 6c | 73 65 0d 69 66 20 74 68 |creen.el|se.if th|
|00001cf0| 65 72 65 20 69 73 20 61 | 20 77 69 6e 64 6f 77 20 |ere is a| window |
|00001d00| 22 50 72 6f 6d 70 74 6f | 69 64 22 20 74 68 65 6e |"Prompto|id" then|
|00001d10| 20 73 65 74 20 76 69 73 | 69 62 6c 65 20 6f 66 20 | set vis|ible of |
|00001d20| 77 69 6e 64 6f 77 20 22 | 50 72 6f 6d 70 74 6f 69 |window "|Promptoi|
|00001d30| 64 22 20 74 6f 20 66 61 | 6c 73 65 0d 73 65 6c 65 |d" to fa|lse.sele|
|00001d40| 63 74 20 74 65 78 74 20 | 69 6e 20 74 68 65 20 74 |ct text |in the t|
|00001d50| 61 72 67 65 74 0d 65 78 | 69 74 20 74 6f 20 48 79 |arget.ex|it to Hy|
|00001d60| 70 65 72 43 61 72 64 0d | 65 6e 64 20 69 66 0d 65 |perCard.|end if.e|
|00001d70| 6c 73 65 0d 73 65 74 20 | 6e 61 6d 65 20 6f 66 20 |lse.set |name of |
|00001d80| 74 68 69 73 20 63 61 72 | 64 20 74 6f 20 65 6d 70 |this car|d to emp|
|00001d90| 74 79 0d 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |ty.if th|ere is a|
|00001da0| 20 63 64 20 65 6e 74 72 | 79 4b 65 79 20 74 68 65 | cd entr|yKey the|
|00001db0| 6e 0d 73 65 74 20 6e 61 | 6d 65 20 6f 66 20 74 68 |n.set na|me of th|
|00001dc0| 69 73 20 63 61 72 64 20 | 74 6f 20 65 6e 74 72 79 |is card |to entry|
|00001dd0| 4b 65 79 0d 75 6e 6c 6f | 63 6b 20 73 63 72 65 65 |Key.unlo|ck scree|
|00001de0| 6e 0d 62 65 65 70 0d 61 | 6e 73 77 65 72 20 22 41 |n.beep.a|nswer "A|
|00001df0| 20 63 61 72 64 20 61 6c | 72 65 61 64 79 20 65 78 | card al|ready ex|
|00001e00| 69 73 74 73 20 77 69 74 | 68 20 74 68 69 73 20 4b |ists wit|h this K|
|00001e10| 65 79 2e 22 20 77 69 74 | 68 20 22 46 69 78 20 69 |ey." wit|h "Fix i|
|00001e20| 74 22 20 6f 72 20 22 4f | 4b 22 0d 69 66 20 69 74 |t" or "O|K".if it|
|00001e30| 20 69 73 20 22 4f 4b 22 | 20 74 68 65 6e 0d 73 65 | is "OK"| then.se|
|00001e40| 74 20 63 75 72 73 6f 72 | 20 74 6f 20 77 61 74 63 |t cursor| to watc|
|00001e50| 68 0d 6c 6f 63 6b 20 73 | 63 72 65 65 6e 0d 65 6c |h.lock s|creen.el|
|00001e60| 73 65 0d 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |se.if th|ere is a|
|00001e70| 20 77 69 6e 64 6f 77 20 | 22 50 72 6f 6d 70 74 6f | window |"Prompto|
|00001e80| 69 64 22 20 74 68 65 6e | 20 73 65 74 20 76 69 73 |id" then| set vis|
|00001e90| 69 62 6c 65 20 6f 66 20 | 77 69 6e 64 6f 77 20 22 |ible of |window "|
|00001ea0| 50 72 6f 6d 70 74 6f 69 | 64 22 20 74 6f 20 66 61 |Promptoi|d" to fa|
|00001eb0| 6c 73 65 0d 73 65 6c 65 | 63 74 20 74 65 78 74 20 |lse.sele|ct text |
|00001ec0| 69 6e 20 74 68 65 20 74 | 61 72 67 65 74 0d 65 78 |in the t|arget.ex|
|00001ed0| 69 74 20 74 6f 20 48 79 | 70 65 72 43 61 72 64 0d |it to Hy|perCard.|
|00001ee0| 65 6e 64 20 69 66 0d 65 | 6c 73 65 0d 73 65 74 20 |end if.e|lse.set |
|00001ef0| 6e 61 6d 65 20 6f 66 20 | 74 68 69 73 20 63 61 72 |name of |this car|
|00001f00| 64 20 74 6f 20 65 6e 74 | 72 79 4b 65 79 0d 73 65 |d to ent|ryKey.se|
|00001f10| 6e 64 20 72 65 74 75 72 | 6e 49 6e 46 69 65 6c 64 |nd retur|nInField|
|00001f20| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 69 66 0d 65 |.end if.|end if.e|
|00001f30| 6e 64 20 63 68 65 63 6b | 4b 65 79 0d 0d 6f 6e 20 |nd check|Key..on |
|00001f40| 76 65 72 69 66 79 46 69 | 65 6c 64 20 6c 69 73 74 |verifyFi|eld list|
|00001f50| 4e 61 6d 65 2c 20 66 69 | 65 6c 64 4e 61 6d 65 0d |Name, fi|eldName.|
|00001f60| 67 6c 6f 62 61 6c 20 76 | 65 72 69 66 79 46 6c 61 |global v|erifyFla|
|00001f70| 67 2c 20 76 65 72 69 66 | 79 43 6d 64 46 6c 61 67 |g, verif|yCmdFlag|
|00001f80| 0d 69 66 20 76 65 72 69 | 66 79 46 6c 61 67 20 69 |.if veri|fyFlag i|
|00001f90| 73 20 66 61 6c 73 65 20 | 74 68 65 6e 20 65 78 69 |s false |then exi|
|00001fa0| 74 20 76 65 72 69 66 79 | 46 69 65 6c 64 0d 70 75 |t verify|Field.pu|
|00001fb0| 74 20 66 6c 64 20 66 69 | 65 6c 64 4e 61 6d 65 20 |t fld fi|eldName |
|00001fc0| 69 6e 74 6f 20 74 68 65 | 46 69 65 6c 64 0d 69 66 |into the|Field.if|
|00001fd0| 20 74 68 65 46 69 65 6c | 64 20 69 73 20 65 6d 70 | theFiel|d is emp|
|00001fe0| 74 79 20 74 68 65 6e 20 | 65 78 69 74 20 76 65 72 |ty then |exit ver|
|00001ff0| 69 66 79 46 69 65 6c 64 | 0d 69 66 20 69 73 41 62 |ifyField|.if isAb|
|00002000| 62 72 65 76 28 74 68 65 | 46 69 65 6c 64 29 20 69 |brev(the|Field) i|
|00002010| 73 20 74 72 75 65 20 74 | 68 65 6e 0d 69 66 20 6e |s true t|hen.if n|
|00002020| 6f 74 20 69 73 56 61 6c | 69 64 41 62 62 72 65 76 |ot isVal|idAbbrev|
|00002030| 28 74 68 65 46 69 65 6c | 64 29 20 74 68 65 6e 0d |(theFiel|d) then.|
|00002040| 62 61 64 41 62 62 72 65 | 76 44 69 61 6c 6f 67 20 |badAbbre|vDialog |
|00002050| 74 68 65 46 69 65 6c 64 | 0d 69 66 20 74 68 65 72 |theField|.if ther|
|00002060| 65 20 69 73 20 61 20 77 | 69 6e 64 6f 77 20 22 50 |e is a w|indow "P|
|00002070| 72 6f 6d 70 74 6f 69 64 | 22 20 74 68 65 6e 20 73 |romptoid|" then s|
|00002080| 65 74 20 76 69 73 69 62 | 6c 65 20 6f 66 20 77 69 |et visib|le of wi|
|00002090| 6e 64 6f 77 20 22 50 72 | 6f 6d 70 74 6f 69 64 22 |ndow "Pr|omptoid"|
|000020a0| 20 74 6f 20 66 61 6c 73 | 65 0d 70 75 74 20 74 72 | to fals|e.put tr|
|000020b0| 75 65 20 69 6e 74 6f 20 | 76 65 72 69 66 79 43 6d |ue into |verifyCm|
|000020c0| 64 46 6c 61 67 0d 73 65 | 6c 65 63 74 20 74 65 78 |dFlag.se|lect tex|
|000020d0| 74 20 6f 66 20 66 6c 64 | 20 66 69 65 6c 64 4e 61 |t of fld| fieldNa|
|000020e0| 6d 65 0d 61 6c 6c 6f 77 | 49 6e 74 65 72 72 75 70 |me.allow|Interrup|
|000020f0| 74 69 6f 6e 0d 65 78 69 | 74 20 74 6f 20 48 79 70 |tion.exi|t to Hyp|
|00002100| 65 72 43 61 72 64 0d 65 | 6c 73 65 0d 69 66 20 6e |erCard.e|lse.if n|
|00002110| 6f 74 20 76 65 72 69 66 | 79 41 62 62 72 65 76 28 |ot verif|yAbbrev(|
|00002120| 6c 69 73 74 4e 61 6d 65 | 2c 74 68 65 46 69 65 6c |listName|,theFiel|
|00002130| 64 29 20 74 68 65 6e 0d | 69 66 20 76 65 72 69 66 |d) then.|if verif|
|00002140| 79 43 6d 64 46 6c 61 67 | 20 69 73 20 74 72 75 65 |yCmdFlag| is true|
|00002150| 20 74 68 65 6e 20 76 65 | 72 69 66 79 41 62 62 72 | then ve|rifyAbbr|
|00002160| 65 76 44 69 61 6c 6f 67 | 20 6c 69 73 74 4e 61 6d |evDialog| listNam|
|00002170| 65 2c 74 68 65 46 69 65 | 6c 64 0d 65 6c 73 65 20 |e,theFie|ld.else |
|00002180| 61 64 64 41 62 62 72 65 | 76 54 6f 4c 69 73 74 20 |addAbbre|vToList |
|00002190| 6c 69 73 74 4e 61 6d 65 | 2c 20 74 68 65 46 69 65 |listName|, theFie|
|000021a0| 6c 64 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 69 66 |ld.end i|f.end if|
|000021b0| 0d 65 6c 73 65 0d 69 66 | 20 6e 6f 74 20 76 65 72 |.else.if| not ver|
|000021c0| 69 66 79 46 69 65 6c 64 | 43 6f 6e 74 65 6e 74 73 |ifyField|Contents|
|000021d0| 28 6c 69 73 74 4e 61 6d | 65 2c 74 68 65 46 69 65 |(listNam|e,theFie|
|000021e0| 6c 64 29 20 74 68 65 6e | 0d 69 66 20 76 65 72 69 |ld) then|.if veri|
|000021f0| 66 79 43 6d 64 46 6c 61 | 67 20 69 73 20 74 72 75 |fyCmdFla|g is tru|
|00002200| 65 20 74 68 65 6e 20 76 | 65 72 69 66 79 46 69 65 |e then v|erifyFie|
|00002210| 6c 64 44 69 61 6c 6f 67 | 20 6c 69 73 74 4e 61 6d |ldDialog| listNam|
|00002220| 65 2c 74 68 65 46 69 65 | 6c 64 0d 65 6c 73 65 20 |e,theFie|ld.else |
|00002230| 61 64 64 54 6f 4c 69 73 | 74 20 6c 69 73 74 4e 61 |addToLis|t listNa|
|00002240| 6d 65 2c 74 68 65 46 69 | 65 6c 64 0d 65 6e 64 20 |me,theFi|eld.end |
|00002250| 69 66 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 76 65 |if.end i|f.end ve|
|00002260| 72 69 66 79 46 69 65 6c | 64 0d 0d 6f 6e 20 76 65 |rifyFiel|d..on ve|
|00002270| 72 69 66 79 41 75 74 68 | 6f 72 46 69 65 6c 64 0d |rifyAuth|orField.|
|00002280| 67 6c 6f 62 61 6c 20 76 | 65 72 69 66 79 46 6c 61 |global v|erifyFla|
|00002290| 67 2c 20 76 65 72 69 66 | 79 43 6d 64 46 6c 61 67 |g, verif|yCmdFlag|
|000022a0| 0d 69 66 20 76 65 72 69 | 66 79 46 6c 61 67 20 69 |.if veri|fyFlag i|
|000022b0| 73 20 66 61 6c 73 65 20 | 74 68 65 6e 20 65 78 69 |s false |then exi|
|000022c0| 74 20 76 65 72 69 66 79 | 41 75 74 68 6f 72 46 69 |t verify|AuthorFi|
|000022d0| 65 6c 64 0d 70 75 74 20 | 66 6c 64 20 22 41 75 74 |eld.put |fld "Aut|
|000022e0| 68 6f 72 22 20 69 6e 74 | 6f 20 74 68 65 46 69 65 |hor" int|o theFie|
|000022f0| 6c 64 0d 69 66 20 74 68 | 65 46 69 65 6c 64 20 69 |ld.if th|eField i|
|00002300| 73 20 65 6d 70 74 79 20 | 74 68 65 6e 20 65 78 69 |s empty |then exi|
|00002310| 74 20 76 65 72 69 66 79 | 41 75 74 68 6f 72 46 69 |t verify|AuthorFi|
|00002320| 65 6c 64 0d 69 66 20 69 | 73 41 62 62 72 65 76 28 |eld.if i|sAbbrev(|
|00002330| 74 68 65 46 69 65 6c 64 | 29 20 69 73 20 74 72 75 |theField|) is tru|
|00002340| 65 20 74 68 65 6e 0d 69 | 66 20 6e 6f 74 20 69 73 |e then.i|f not is|
|00002350| 56 61 6c 69 64 41 62 62 | 72 65 76 28 74 68 65 46 |ValidAbb|rev(theF|
|00002360| 69 65 6c 64 29 20 74 68 | 65 6e 0d 62 61 64 41 62 |ield) th|en.badAb|
|00002370| 62 72 65 76 44 69 61 6c | 6f 67 20 74 68 65 46 69 |brevDial|og theFi|
|00002380| 65 6c 64 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |eld.if t|here is |
|00002390| 61 20 77 69 6e 64 6f 77 | 20 22 50 72 6f 6d 70 74 |a window| "Prompt|
|000023a0| 6f 69 64 22 20 74 68 65 | 6e 20 73 65 74 20 76 69 |oid" the|n set vi|
|000023b0| 73 69 62 6c 65 20 6f 66 | 20 77 69 6e 64 6f 77 20 |sible of| window |
|000023c0| 22 50 72 6f 6d 70 74 6f | 69 64 22 20 74 6f 20 66 |"Prompto|id" to f|
|000023d0| 61 6c 73 65 0d 70 75 74 | 20 74 72 75 65 20 69 6e |alse.put| true in|
|000023e0| 74 6f 20 76 65 72 69 66 | 79 43 6d 64 46 6c 61 67 |to verif|yCmdFlag|
|000023f0| 0d 73 65 6c 65 63 74 20 | 74 65 78 74 20 6f 66 20 |.select |text of |
|00002400| 66 6c 64 20 22 41 75 74 | 68 6f 72 22 0d 61 6c 6c |fld "Aut|hor".all|
|00002410| 6f 77 49 6e 74 65 72 72 | 75 70 74 69 6f 6e 0d 65 |owInterr|uption.e|
|00002420| 78 69 74 20 74 6f 20 48 | 79 70 65 72 43 61 72 64 |xit to H|yperCard|
|00002430| 0d 65 6c 73 65 0d 69 66 | 20 6e 6f 74 20 76 65 72 |.else.if| not ver|
|00002440| 69 66 79 41 62 62 72 65 | 76 28 22 41 75 74 68 6f |ifyAbbre|v("Autho|
|00002450| 72 73 22 2c 74 68 65 46 | 69 65 6c 64 29 20 74 68 |rs",theF|ield) th|
|00002460| 65 6e 0d 69 66 20 76 65 | 72 69 66 79 43 6d 64 46 |en.if ve|rifyCmdF|
|00002470| 6c 61 67 20 69 73 20 74 | 72 75 65 20 74 68 65 6e |lag is t|rue then|
|00002480| 20 76 65 72 69 66 79 41 | 62 62 72 65 76 44 69 61 | verifyA|bbrevDia|
|00002490| 6c 6f 67 20 22 41 75 74 | 68 6f 72 73 22 2c 74 68 |log "Aut|hors",th|
|000024a0| 65 46 69 65 6c 64 0d 65 | 6c 73 65 20 61 64 64 41 |eField.e|lse addA|
|000024b0| 62 62 72 65 76 54 6f 4c | 69 73 74 20 22 41 75 74 |bbrevToL|ist "Aut|
|000024c0| 68 6f 72 73 22 2c 20 74 | 68 65 46 69 65 6c 64 0d |hors", t|heField.|
|000024d0| 65 6e 64 20 69 66 0d 65 | 6e 64 20 69 66 0d 65 6c |end if.e|nd if.el|
|000024e0| 73 65 0d 70 75 74 20 66 | 75 6c 6c 52 65 70 6c 61 |se.put f|ullRepla|
|000024f0| 63 65 28 66 6c 64 20 22 | 41 75 74 68 6f 72 22 2c |ce(fld "|Author",|
|00002500| 22 20 61 6e 64 20 22 2c | 72 65 74 75 72 6e 29 20 |" and ",|return) |
|00002510| 69 6e 74 6f 20 61 75 74 | 68 6f 72 4c 69 73 74 0d |into aut|horList.|
|00002520| 72 65 70 65 61 74 20 77 | 69 74 68 20 78 20 3d 20 |repeat w|ith x = |
|00002530| 31 20 74 6f 20 28 6e 75 | 6d 62 65 72 20 6f 66 20 |1 to (nu|mber of |
|00002540| 6c 69 6e 65 73 20 69 6e | 20 61 75 74 68 6f 72 4c |lines in| authorL|
|00002550| 69 73 74 29 0d 69 66 20 | 6e 6f 74 20 76 65 72 69 |ist).if |not veri|
|00002560| 66 79 46 69 65 6c 64 43 | 6f 6e 74 65 6e 74 73 28 |fyFieldC|ontents(|
|00002570| 22 41 75 74 68 6f 72 73 | 22 2c 6c 69 6e 65 20 78 |"Authors|",line x|
|00002580| 20 6f 66 20 61 75 74 68 | 6f 72 4c 69 73 74 29 20 | of auth|orList) |
|00002590| 74 68 65 6e 0d 69 66 20 | 76 65 72 69 66 79 43 6d |then.if |verifyCm|
|000025a0| 64 46 6c 61 67 20 69 73 | 20 74 72 75 65 20 74 68 |dFlag is| true th|
|000025b0| 65 6e 20 76 65 72 69 66 | 79 46 69 65 6c 64 44 69 |en verif|yFieldDi|
|000025c0| 61 6c 6f 67 20 22 41 75 | 74 68 6f 72 73 22 2c 6c |alog "Au|thors",l|
|000025d0| 69 6e 65 20 78 20 6f 66 | 20 61 75 74 68 6f 72 4c |ine x of| authorL|
|000025e0| 69 73 74 0d 65 6c 73 65 | 20 61 64 64 54 6f 4c 69 |ist.else| addToLi|
|000025f0| 73 74 20 22 41 75 74 68 | 6f 72 73 22 2c 6c 69 6e |st "Auth|ors",lin|
|00002600| 65 20 78 20 6f 66 20 61 | 75 74 68 6f 72 4c 69 73 |e x of a|uthorLis|
|00002610| 74 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 72 65 70 |t.end if|.end rep|
|00002620| 65 61 74 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 76 |eat.end |if.end v|
|00002630| 65 72 69 66 79 41 75 74 | 68 6f 72 46 69 65 6c 64 |erifyAut|horField|
|00002640| 0d 0d 6f 6e 20 76 65 72 | 69 66 79 4b 65 79 77 6f |..on ver|ifyKeywo|
|00002650| 72 64 73 46 69 65 6c 64 | 0d 67 6c 6f 62 61 6c 20 |rdsField|.global |
|00002660| 76 65 72 69 66 79 46 6c | 61 67 2c 20 76 65 72 69 |verifyFl|ag, veri|
|00002670| 66 79 43 6d 64 46 6c 61 | 67 0d 69 66 20 76 65 72 |fyCmdFla|g.if ver|
|00002680| 69 66 79 46 6c 61 67 20 | 69 73 20 66 61 6c 73 65 |ifyFlag |is false|
|00002690| 20 74 68 65 6e 20 65 78 | 69 74 20 76 65 72 69 66 | then ex|it verif|
|000026a0| 79 4b 65 79 77 6f 72 64 | 73 46 69 65 6c 64 0d 72 |yKeyword|sField.r|
|000026b0| 65 70 65 61 74 20 77 69 | 74 68 20 78 20 3d 20 31 |epeat wi|th x = 1|
|000026c0| 20 74 6f 20 28 6e 75 6d | 62 65 72 20 6f 66 20 6c | to (num|ber of l|
|000026d0| 69 6e 65 73 20 69 6e 20 | 66 6c 64 20 22 4b 65 79 |ines in |fld "Key|
|000026e0| 77 6f 72 64 73 22 29 0d | 70 75 74 20 6c 69 6e 65 |words").|put line|
|000026f0| 20 78 20 6f 66 20 66 6c | 64 20 22 4b 65 79 77 6f | x of fl|d "Keywo|
|00002700| 72 64 73 22 20 69 6e 74 | 6f 20 74 68 65 4b 65 79 |rds" int|o theKey|
|00002710| 77 6f 72 64 0d 69 66 20 | 69 73 41 62 62 72 65 76 |word.if |isAbbrev|
|00002720| 28 74 68 65 4b 65 79 77 | 6f 72 64 29 20 69 73 20 |(theKeyw|ord) is |
|00002730| 74 72 75 65 20 74 68 65 | 6e 0d 69 66 20 6e 6f 74 |true the|n.if not|
|00002740| 20 69 73 56 61 6c 69 64 | 41 62 62 72 65 76 28 74 | isValid|Abbrev(t|
|00002750| 68 65 4b 65 79 77 6f 72 | 64 29 20 74 68 65 6e 0d |heKeywor|d) then.|
|00002760| 62 61 64 41 62 62 72 65 | 76 44 69 61 6c 6f 67 20 |badAbbre|vDialog |
|00002770| 74 68 65 4b 65 79 77 6f | 72 64 0d 69 66 20 74 68 |theKeywo|rd.if th|
|00002780| 65 72 65 20 69 73 20 61 | 20 77 69 6e 64 6f 77 20 |ere is a| window |
|00002790| 22 50 72 6f 6d 70 74 6f | 69 64 22 20 74 68 65 6e |"Prompto|id" then|
|000027a0| 20 73 65 74 20 76 69 73 | 69 62 6c 65 20 6f 66 20 | set vis|ible of |
|000027b0| 77 69 6e 64 6f 77 20 22 | 50 72 6f 6d 70 74 6f 69 |window "|Promptoi|
|000027c0| 64 22 20 74 6f 20 66 61 | 6c 73 65 0d 70 75 74 20 |d" to fa|lse.put |
|000027d0| 74 72 75 65 20 69 6e 74 | 6f 20 76 65 72 69 66 79 |true int|o verify|
|000027e0| 43 6d 64 46 6c 61 67 0d | 73 65 6c 65 63 74 20 6c |CmdFlag.|select l|
|000027f0| 69 6e 65 20 78 20 6f 66 | 20 66 6c 64 20 22 4b 65 |ine x of| fld "Ke|
|00002800| 79 77 6f 72 64 73 22 0d | 61 6c 6c 6f 77 49 6e 74 |ywords".|allowInt|
|00002810| 65 72 72 75 70 74 69 6f | 6e 0d 65 78 69 74 20 74 |erruptio|n.exit t|
|00002820| 6f 20 48 79 70 65 72 43 | 61 72 64 0d 65 6c 73 65 |o HyperC|ard.else|
|00002830| 0d 69 66 20 6e 6f 74 20 | 76 65 72 69 66 79 41 62 |.if not |verifyAb|
|00002840| 62 72 65 76 28 22 4b 65 | 79 77 6f 72 64 73 22 2c |brev("Ke|ywords",|
|00002850| 74 68 65 4b 65 79 77 6f | 72 64 29 20 74 68 65 6e |theKeywo|rd) then|
|00002860| 0d 69 66 20 76 65 72 69 | 66 79 43 6d 64 46 6c 61 |.if veri|fyCmdFla|
|00002870| 67 20 69 73 20 74 72 75 | 65 20 74 68 65 6e 20 76 |g is tru|e then v|
|00002880| 65 72 69 66 79 41 62 62 | 72 65 76 44 69 61 6c 6f |erifyAbb|revDialo|
|00002890| 67 20 22 4b 65 79 77 6f | 72 64 73 22 2c 74 68 65 |g "Keywo|rds",the|
|000028a0| 4b 65 79 77 6f 72 64 0d | 65 6c 73 65 20 61 64 64 |Keyword.|else add|
|000028b0| 41 62 62 72 65 76 54 6f | 4c 69 73 74 20 22 4b 65 |AbbrevTo|List "Ke|
|000028c0| 79 77 6f 72 64 73 22 2c | 74 68 65 4b 65 79 77 6f |ywords",|theKeywo|
|000028d0| 72 64 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 69 66 |rd.end i|f.end if|
|000028e0| 0d 65 6c 73 65 0d 69 66 | 20 6e 6f 74 20 76 65 72 |.else.if| not ver|
|000028f0| 69 66 79 46 69 65 6c 64 | 43 6f 6e 74 65 6e 74 73 |ifyField|Contents|
|00002900| 28 22 4b 65 79 77 6f 72 | 64 73 22 2c 74 68 65 4b |("Keywor|ds",theK|
|00002910| 65 79 77 6f 72 64 29 20 | 74 68 65 6e 0d 69 66 20 |eyword) |then.if |
|00002920| 76 65 72 69 66 79 43 6d | 64 46 6c 61 67 20 69 73 |verifyCm|dFlag is|
|00002930| 20 74 72 75 65 20 74 68 | 65 6e 20 76 65 72 69 66 | true th|en verif|
|00002940| 79 46 69 65 6c 64 44 69 | 61 6c 6f 67 20 22 4b 65 |yFieldDi|alog "Ke|
|00002950| 79 77 6f 72 64 73 22 2c | 74 68 65 4b 65 79 77 6f |ywords",|theKeywo|
|00002960| 72 64 0d 65 6c 73 65 20 | 61 64 64 54 6f 4c 69 73 |rd.else |addToLis|
|00002970| 74 20 22 4b 65 79 77 6f | 72 64 73 22 2c 74 68 65 |t "Keywo|rds",the|
|00002980| 4b 65 79 77 6f 72 64 0d | 65 6e 64 20 69 66 0d 65 |Keyword.|end if.e|
|00002990| 6e 64 20 69 66 0d 65 6e | 64 20 72 65 70 65 61 74 |nd if.en|d repeat|
|000029a0| 0d 65 6e 64 20 76 65 72 | 69 66 79 4b 65 79 77 6f |.end ver|ifyKeywo|
|000029b0| 72 64 73 46 69 65 6c 64 | 0d 0d 66 75 6e 63 74 69 |rdsField|..functi|
|000029c0| 6f 6e 20 69 73 41 62 62 | 72 65 76 20 66 69 65 6c |on isAbb|rev fiel|
|000029d0| 64 43 6f 6e 74 65 6e 74 | 73 0d 69 66 20 74 68 65 |dContent|s.if the|
|000029e0| 20 66 69 72 73 74 20 63 | 68 61 72 20 6f 66 20 66 | first c|har of f|
|000029f0| 69 65 6c 64 43 6f 6e 74 | 65 6e 74 73 20 69 73 20 |ieldCont|ents is |
|00002a00| 22 2e 22 20 74 68 65 6e | 20 72 65 74 75 72 6e 20 |"." then| return |
|00002a10| 74 72 75 65 0d 65 6c 73 | 65 20 72 65 74 75 72 6e |true.els|e return|
|00002a20| 20 66 61 6c 73 65 0d 65 | 6e 64 20 69 73 41 62 62 | false.e|nd isAbb|
|00002a30| 72 65 76 0d 0d 66 75 6e | 63 74 69 6f 6e 20 69 73 |rev..fun|ction is|
|00002a40| 56 61 6c 69 64 41 62 62 | 72 65 76 20 73 74 72 0d |ValidAbb|rev str.|
|00002a50| 69 66 20 63 68 61 72 54 | 6f 4e 75 6d 28 63 68 61 |if charT|oNum(cha|
|00002a60| 72 20 32 20 6f 66 20 73 | 74 72 29 20 3c 20 36 34 |r 2 of s|tr) < 64|
|00002a70| 20 6f 72 20 63 68 61 72 | 54 6f 4e 75 6d 28 63 68 | or char|ToNum(ch|
|00002a80| 61 72 20 32 20 6f 66 20 | 73 74 72 29 20 3e 20 31 |ar 2 of |str) > 1|
|00002a90| 32 33 20 74 68 65 6e 20 | 72 65 74 75 72 6e 20 66 |23 then |return f|
|00002aa0| 61 6c 73 65 0d 70 75 74 | 20 71 75 6f 74 65 26 22 |alse.put| quote&"|
|00002ab0| 20 23 25 27 28 29 2c 3d | 7b 7d 22 20 69 6e 74 6f | #%'(),=|{}" into|
|00002ac0| 20 62 61 64 43 68 61 72 | 73 0d 72 65 70 65 61 74 | badChar|s.repeat|
|00002ad0| 20 77 69 74 68 20 78 20 | 3d 20 31 20 74 6f 20 6e | with x |= 1 to n|
|00002ae0| 75 6d 62 65 72 20 6f 66 | 20 63 68 61 72 73 20 69 |umber of| chars i|
|00002af0| 6e 20 62 61 64 43 68 61 | 72 73 0d 69 66 20 73 74 |n badCha|rs.if st|
|00002b00| 72 20 63 6f 6e 74 61 69 | 6e 73 20 63 68 61 72 20 |r contai|ns char |
|00002b10| 78 20 6f 66 20 62 61 64 | 43 68 61 72 73 20 74 68 |x of bad|Chars th|
|00002b20| 65 6e 20 72 65 74 75 72 | 6e 20 66 61 6c 73 65 0d |en retur|n false.|
|00002b30| 65 6c 73 65 20 6e 65 78 | 74 20 72 65 70 65 61 74 |else nex|t repeat|
|00002b40| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 72 65 74 75 |.end rep|eat.retu|
|00002b50| 72 6e 20 74 72 75 65 0d | 65 6e 64 20 69 73 56 61 |rn true.|end isVa|
|00002b60| 6c 69 64 41 62 62 72 65 | 76 0d 0d 6f 6e 20 62 61 |lidAbbre|v..on ba|
|00002b70| 64 41 62 62 72 65 76 44 | 69 61 6c 6f 67 20 74 68 |dAbbrevD|ialog th|
|00002b80| 65 46 69 65 6c 64 0d 62 | 65 65 70 0d 61 6e 73 77 |eField.b|eep.answ|
|00002b90| 65 72 20 22 42 61 64 20 | 61 62 62 72 65 76 69 61 |er "Bad |abbrevia|
|00002ba0| 74 69 6f 6e 3a 20 22 26 | 26 74 68 65 46 69 65 6c |tion: "&|&theFiel|
|00002bb0| 64 26 72 65 74 75 72 6e | 26 22 41 6e 20 61 62 62 |d&return|&"An abb|
|00002bc0| 72 65 76 69 61 74 69 6f | 6e 20 73 74 61 72 74 73 |reviatio|n starts|
|00002bd0| 20 77 69 74 68 20 61 20 | 6c 65 74 74 65 72 22 c2 | with a |letter".|
|00002be0| 0d 26 26 22 61 6e 64 20 | 64 6f 65 73 20 6e 6f 74 |.&&"and |does not|
|00002bf0| 20 63 6f 6e 74 61 69 6e | 20 61 20 73 70 61 63 65 | contain| a space|
|00002c00| 20 6f 72 20 61 6e 79 20 | 6f 66 20 74 68 65 73 65 | or any |of these|
|00002c10| 20 69 6c 6c 65 67 61 6c | 20 63 68 61 72 61 63 74 | illegal| charact|
|00002c20| 65 72 73 3a 22 26 72 65 | 74 75 72 6e 26 22 20 20 |ers:"&re|turn&" |
|00002c30| 20 20 20 22 c2 0d 26 71 | 75 6f 74 65 26 26 22 23 | "..&q|uote&&"#|
|00002c40| 22 26 26 22 25 22 26 26 | 22 27 22 26 26 22 28 22 |"&&"%"&&|"'"&&"("|
|00002c50| 26 26 22 29 22 26 26 22 | 2c 22 26 26 22 3d 22 26 |&&")"&&"|,"&&"="&|
|00002c60| 26 22 7b 22 26 26 22 7d | 22 26 72 65 74 75 72 6e |&"{"&&"}|"&return|
|00002c70| 26 22 50 6c 65 61 73 65 | 20 74 72 79 20 61 67 61 |&"Please| try aga|
|00002c80| 69 6e 2e 22 0d 65 6e 64 | 20 62 61 64 41 62 62 72 |in.".end| badAbbr|
|00002c90| 65 76 44 69 61 6c 6f 67 | 0d 0d 66 75 6e 63 74 69 |evDialog|..functi|
|00002ca0| 6f 6e 20 76 65 72 69 66 | 79 41 62 62 72 65 76 20 |on verif|yAbbrev |
|00002cb0| 6c 69 73 74 4e 61 6d 65 | 2c 20 74 68 65 41 62 62 |listName|, theAbb|
|00002cc0| 72 65 76 0d 69 66 20 28 | 72 65 74 75 72 6e 26 74 |rev.if (|return&t|
|00002cd0| 68 65 41 62 62 72 65 76 | 26 22 3d 22 29 20 69 73 |heAbbrev|&"=") is|
|00002ce0| 20 69 6e 20 28 72 65 74 | 75 72 6e 26 28 63 64 20 | in (ret|urn&(cd |
|00002cf0| 66 6c 64 20 6c 69 73 74 | 4e 61 6d 65 20 6f 66 20 |fld list|Name of |
|00002d00| 63 64 20 6c 69 73 74 4e | 61 6d 65 29 26 72 65 74 |cd listN|ame)&ret|
|00002d10| 75 72 6e 29 0d 74 68 65 | 6e 20 72 65 74 75 72 6e |urn).the|n return|
|00002d20| 20 74 72 75 65 0d 65 6c | 73 65 20 72 65 74 75 72 | true.el|se retur|
|00002d30| 6e 20 66 61 6c 73 65 0d | 65 6e 64 20 76 65 72 69 |n false.|end veri|
|00002d40| 66 79 41 62 62 72 65 76 | 0d 0d 6f 6e 20 76 65 72 |fyAbbrev|..on ver|
|00002d50| 69 66 79 41 62 62 72 65 | 76 44 69 61 6c 6f 67 20 |ifyAbbre|vDialog |
|00002d60| 6c 69 73 74 6e 61 6d 65 | 2c 20 74 68 65 41 62 62 |listname|, theAbb|
|00002d70| 72 65 76 0d 75 6e 6c 6f | 63 6b 20 73 63 72 65 65 |rev.unlo|ck scree|
|00002d80| 6e 0d 62 65 65 70 0d 61 | 6e 73 77 65 72 20 22 54 |n.beep.a|nswer "T|
|00002d90| 68 65 20 61 62 62 72 65 | 76 69 61 74 69 6f 6e 20 |he abbre|viation |
|00002da0| d2 22 26 74 68 65 41 62 | 62 72 65 76 20 c2 0d 26 |."&theAb|brev ..&|
|00002db0| 22 d3 20 69 73 20 6e 6f | 74 20 69 6e 20 74 68 65 |". is no|t in the|
|00002dc0| 20 61 75 74 68 6f 72 69 | 74 79 20 6c 69 73 74 20 | authori|ty list |
|00002dd0| 66 6f 72 20 74 68 69 73 | 20 66 69 65 6c 64 d1 d1 |for this| field..|
|00002de0| 61 64 64 20 69 74 3f 22 | 20 c2 0d 77 69 74 68 20 |add it?"| ..with |
|00002df0| 22 45 64 69 74 20 6c 69 | 73 74 22 20 6f 72 20 22 |"Edit li|st" or "|
|00002e00| 4e 6f 22 20 6f 72 20 22 | 41 64 64 22 0d 69 66 20 |No" or "|Add".if |
|00002e10| 69 74 20 69 73 20 22 41 | 64 64 22 20 74 68 65 6e |it is "A|dd" then|
|00002e20| 0d 73 65 74 20 63 75 72 | 73 6f 72 20 74 6f 20 77 |.set cur|sor to w|
|00002e30| 61 74 63 68 0d 61 64 64 | 41 62 62 72 65 76 54 6f |atch.add|AbbrevTo|
|00002e40| 4c 69 73 74 20 6c 69 73 | 74 4e 61 6d 65 2c 20 74 |List lis|tName, t|
|00002e50| 68 65 41 62 62 72 65 76 | 0d 6c 6f 63 6b 20 73 63 |heAbbrev|.lock sc|
|00002e60| 72 65 65 6e 0d 65 6c 73 | 65 20 69 66 20 69 74 20 |reen.els|e if it |
|00002e70| 69 73 20 22 45 64 69 74 | 20 6c 69 73 74 22 20 74 |is "Edit| list" t|
|00002e80| 68 65 6e 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |hen.if t|here is |
|00002e90| 61 20 77 69 6e 64 6f 77 | 20 22 50 72 6f 6d 70 74 |a window| "Prompt|
|00002ea0| 6f 69 64 22 20 74 68 65 | 6e 20 73 65 74 20 76 69 |oid" the|n set vi|
|00002eb0| 73 69 62 6c 65 20 6f 66 | 20 77 69 6e 64 6f 77 20 |sible of| window |
|00002ec0| 22 50 72 6f 6d 70 74 6f | 69 64 22 20 74 6f 20 66 |"Prompto|id" to f|
|00002ed0| 61 6c 73 65 0d 70 75 73 | 68 20 63 64 0d 76 69 73 |alse.pus|h cd.vis|
|00002ee0| 75 61 6c 20 7a 6f 6f 6d | 20 6f 70 65 6e 0d 67 6f |ual zoom| open.go|
|00002ef0| 20 63 64 20 6c 69 73 74 | 4e 61 6d 65 20 6f 66 20 | cd list|Name of |
|00002f00| 62 67 20 22 48 42 20 55 | 74 69 6c 69 74 79 20 43 |bg "HB U|tility C|
|00002f10| 61 72 64 73 22 0d 73 65 | 6c 65 63 74 20 62 65 66 |ards".se|lect bef|
|00002f20| 6f 72 65 20 74 65 78 74 | 20 6f 66 20 63 64 20 66 |ore text| of cd f|
|00002f30| 6c 64 20 6c 69 73 74 4e | 61 6d 65 0d 65 78 69 74 |ld listN|ame.exit|
|00002f40| 20 74 6f 20 48 79 70 65 | 72 63 61 72 64 20 2d 2d | to Hype|rcard --|
|00002f50| 65 78 69 74 20 61 6c 6c | 20 70 65 6e 64 69 6e 67 |exit all| pending|
|00002f60| 20 68 61 6e 64 6c 65 72 | 73 0d 65 6c 73 65 0d 73 | handler|s.else.s|
|00002f70| 65 74 20 63 75 72 73 6f | 72 20 74 6f 20 77 61 74 |et curso|r to wat|
|00002f80| 63 68 0d 6c 6f 63 6b 20 | 73 63 72 65 65 6e 0d 65 |ch.lock |screen.e|
|00002f90| 6e 64 20 69 66 0d 65 6e | 64 20 76 65 72 69 66 79 |nd if.en|d verify|
|00002fa0| 41 62 62 72 65 76 44 69 | 61 6c 6f 67 0d 0d 6f 6e |AbbrevDi|alog..on|
|00002fb0| 20 61 64 64 41 62 62 72 | 65 76 54 6f 4c 69 73 74 | addAbbr|evToList|
|00002fc0| 20 6c 69 73 74 4e 61 6d | 65 2c 20 74 68 65 41 62 | listNam|e, theAb|
|00002fd0| 62 72 65 76 0d 61 73 6b | 20 22 57 68 61 74 20 64 |brev.ask| "What d|
|00002fe0| 6f 65 73 20 d2 22 26 74 | 68 65 41 62 62 72 65 76 |oes ."&t|heAbbrev|
|00002ff0| 26 22 d3 20 73 74 61 6e | 64 20 66 6f 72 3f 22 20 |&". stan|d for?" |
|00003000| 77 69 74 68 20 22 54 79 | 70 65 20 73 6f 6d 65 74 |with "Ty|pe somet|
|00003010| 68 69 6e 67 20 68 65 72 | 65 22 0d 70 75 74 20 69 |hing her|e".put i|
|00003020| 74 20 69 6e 74 6f 20 74 | 68 65 53 74 72 69 6e 67 |t into t|heString|
|00003030| 0d 64 6f 4c 6f 63 6b 20 | 74 72 75 65 0d 70 75 73 |.doLock |true.pus|
|00003040| 68 20 63 64 0d 67 6f 20 | 63 64 20 6c 69 73 74 4e |h cd.go |cd listN|
|00003050| 61 6d 65 20 6f 66 20 62 | 67 20 22 48 42 20 55 74 |ame of b|g "HB Ut|
|00003060| 69 6c 69 74 79 20 43 61 | 72 64 73 22 0d 70 75 74 |ility Ca|rds".put|
|00003070| 20 72 65 74 75 72 6e 26 | 74 68 65 41 62 62 72 65 | return&|theAbbre|
|00003080| 76 26 22 3d 22 26 71 75 | 6f 74 65 26 74 68 65 53 |v&"="&qu|ote&theS|
|00003090| 74 72 69 6e 67 26 71 75 | 6f 74 65 20 61 66 74 65 |tring&qu|ote afte|
|000030a0| 72 20 63 64 20 66 6c 64 | 20 6c 69 73 74 4e 61 6d |r cd fld| listNam|
|000030b0| 65 0d 73 65 6e 64 20 63 | 6c 6f 73 65 46 69 65 6c |e.send c|loseFiel|
|000030c0| 64 20 74 6f 20 63 64 20 | 66 6c 64 20 6c 69 73 74 |d to cd |fld list|
|000030d0| 4e 61 6d 65 0d 70 6f 70 | 20 63 64 0d 64 6f 4c 6f |Name.pop| cd.doLo|
|000030e0| 63 6b 20 66 61 6c 73 65 | 0d 65 6e 64 20 61 64 64 |ck false|.end add|
|000030f0| 41 62 62 72 65 76 54 6f | 4c 69 73 74 0d 0d 66 75 |AbbrevTo|List..fu|
|00003100| 6e 63 74 69 6f 6e 20 76 | 65 72 69 66 79 46 69 65 |nction v|erifyFie|
|00003110| 6c 64 43 6f 6e 74 65 6e | 74 73 20 6c 69 73 74 4e |ldConten|ts listN|
|00003120| 61 6d 65 2c 66 69 65 6c | 64 43 6f 6e 74 65 6e 74 |ame,fiel|dContent|
|00003130| 73 0d 69 66 20 28 72 65 | 74 75 72 6e 26 66 69 65 |s.if (re|turn&fie|
|00003140| 6c 64 43 6f 6e 74 65 6e | 74 73 26 72 65 74 75 72 |ldConten|ts&retur|
|00003150| 6e 29 20 69 73 20 69 6e | 20 28 72 65 74 75 72 6e |n) is in| (return|
|00003160| 26 28 63 64 20 66 6c 64 | 20 6c 69 73 74 4e 61 6d |&(cd fld| listNam|
|00003170| 65 20 6f 66 20 63 64 20 | 6c 69 73 74 4e 61 6d 65 |e of cd |listName|
|00003180| 29 26 72 65 74 75 72 6e | 29 20 c2 0d 74 68 65 6e |)&return|) ..then|
|00003190| 20 72 65 74 75 72 6e 20 | 74 72 75 65 0d 65 6c 73 | return |true.els|
|000031a0| 65 20 72 65 74 75 72 6e | 20 66 61 6c 73 65 0d 65 |e return| false.e|
|000031b0| 6e 64 20 76 65 72 69 66 | 79 46 69 65 6c 64 43 6f |nd verif|yFieldCo|
|000031c0| 6e 74 65 6e 74 73 0d 0d | 6f 6e 20 76 65 72 69 66 |ntents..|on verif|
|000031d0| 79 46 69 65 6c 64 44 69 | 61 6c 6f 67 20 6c 69 73 |yFieldDi|alog lis|
|000031e0| 74 4e 61 6d 65 2c 20 66 | 69 65 6c 64 43 6f 6e 74 |tName, f|ieldCont|
|000031f0| 65 6e 74 73 0d 75 6e 6c | 6f 63 6b 20 73 63 72 65 |ents.unl|ock scre|
|00003200| 65 6e 0d 62 65 65 70 0d | 61 6e 73 77 65 72 20 22 |en.beep.|answer "|
|00003210| d2 22 26 66 69 65 6c 64 | 43 6f 6e 74 65 6e 74 73 |."&field|Contents|
|00003220| 20 c2 0d 26 22 d3 20 69 | 73 20 6e 6f 74 20 69 6e | ..&". i|s not in|
|00003230| 20 74 68 65 20 61 75 74 | 68 6f 72 69 74 79 20 6c | the aut|hority l|
|00003240| 69 73 74 20 66 6f 72 20 | 74 68 69 73 20 66 69 65 |ist for |this fie|
|00003250| 6c 64 d1 d1 61 64 64 20 | 69 74 3f 22 20 c2 0d 77 |ld..add |it?" ..w|
|00003260| 69 74 68 20 22 45 64 69 | 74 20 6c 69 73 74 22 20 |ith "Edi|t list" |
|00003270| 6f 72 20 22 4e 6f 22 20 | 6f 72 20 22 41 64 64 22 |or "No" |or "Add"|
|00003280| 0d 69 66 20 69 74 20 69 | 73 20 22 41 64 64 22 20 |.if it i|s "Add" |
|00003290| 74 68 65 6e 0d 73 65 74 | 20 63 75 72 73 6f 72 20 |then.set| cursor |
|000032a0| 74 6f 20 77 61 74 63 68 | 0d 61 64 64 54 6f 4c 69 |to watch|.addToLi|
|000032b0| 73 74 20 6c 69 73 74 4e | 61 6d 65 2c 20 66 69 65 |st listN|ame, fie|
|000032c0| 6c 64 43 6f 6e 74 65 6e | 74 73 0d 6c 6f 63 6b 20 |ldConten|ts.lock |
|000032d0| 73 63 72 65 65 6e 0d 65 | 6c 73 65 20 69 66 20 69 |screen.e|lse if i|
|000032e0| 74 20 69 73 20 22 45 64 | 69 74 20 6c 69 73 74 22 |t is "Ed|it list"|
|000032f0| 20 74 68 65 6e 0d 69 66 | 20 74 68 65 72 65 20 69 | then.if| there i|
|00003300| 73 20 61 20 77 69 6e 64 | 6f 77 20 22 50 72 6f 6d |s a wind|ow "Prom|
|00003310| 70 74 6f 69 64 22 20 74 | 68 65 6e 20 73 65 74 20 |ptoid" t|hen set |
|00003320| 76 69 73 69 62 6c 65 20 | 6f 66 20 77 69 6e 64 6f |visible |of windo|
|00003330| 77 20 22 50 72 6f 6d 70 | 74 6f 69 64 22 20 74 6f |w "Promp|toid" to|
|00003340| 20 66 61 6c 73 65 0d 70 | 75 73 68 20 63 64 0d 76 | false.p|ush cd.v|
|00003350| 69 73 75 61 6c 20 7a 6f | 6f 6d 20 6f 70 65 6e 0d |isual zo|om open.|
|00003360| 67 6f 20 63 64 20 6c 69 | 73 74 4e 61 6d 65 20 6f |go cd li|stName o|
|00003370| 66 20 62 67 20 22 48 42 | 20 55 74 69 6c 69 74 79 |f bg "HB| Utility|
|00003380| 20 43 61 72 64 73 22 0d | 73 65 6c 65 63 74 20 62 | Cards".|select b|
|00003390| 65 66 6f 72 65 20 74 65 | 78 74 20 6f 66 20 63 64 |efore te|xt of cd|
|000033a0| 20 66 6c 64 20 6c 69 73 | 74 4e 61 6d 65 0d 65 78 | fld lis|tName.ex|
|000033b0| 69 74 20 74 6f 20 48 79 | 70 65 72 63 61 72 64 20 |it to Hy|percard |
|000033c0| 2d 2d 65 78 69 74 20 61 | 6c 6c 20 70 65 6e 64 69 |--exit a|ll pendi|
|000033d0| 6e 67 20 68 61 6e 64 6c | 65 72 73 0d 65 6c 73 65 |ng handl|ers.else|
|000033e0| 0d 73 65 74 20 63 75 72 | 73 6f 72 20 74 6f 20 77 |.set cur|sor to w|
|000033f0| 61 74 63 68 0d 6c 6f 63 | 6b 20 73 63 72 65 65 6e |atch.loc|k screen|
|00003400| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 76 65 72 69 |.end if.|end veri|
|00003410| 66 79 46 69 65 6c 64 44 | 69 61 6c 6f 67 0d 0d 6f |fyFieldD|ialog..o|
|00003420| 6e 20 61 64 64 54 6f 4c | 69 73 74 20 6c 69 73 74 |n addToL|ist list|
|00003430| 4e 61 6d 65 2c 20 66 69 | 65 6c 64 43 6f 6e 74 65 |Name, fi|eldConte|
|00003440| 6e 74 73 0d 64 6f 4c 6f | 63 6b 20 74 72 75 65 0d |nts.doLo|ck true.|
|00003450| 70 75 73 68 20 63 64 0d | 67 6f 20 63 64 20 6c 69 |push cd.|go cd li|
|00003460| 73 74 4e 61 6d 65 20 6f | 66 20 62 67 20 22 48 42 |stName o|f bg "HB|
|00003470| 20 55 74 69 6c 69 74 79 | 20 43 61 72 64 73 22 0d | Utility| Cards".|
|00003480| 70 75 74 20 72 65 74 75 | 72 6e 26 66 69 65 6c 64 |put retu|rn&field|
|00003490| 43 6f 6e 74 65 6e 74 73 | 20 61 66 74 65 72 20 63 |Contents| after c|
|000034a0| 64 20 66 6c 64 20 6c 69 | 73 74 4e 61 6d 65 0d 73 |d fld li|stName.s|
|000034b0| 65 6e 64 20 63 6c 6f 73 | 65 46 69 65 6c 64 20 74 |end clos|eField t|
|000034c0| 6f 20 63 64 20 66 6c 64 | 20 6c 69 73 74 4e 61 6d |o cd fld| listNam|
|000034d0| 65 0d 70 6f 70 20 63 64 | 0d 64 6f 4c 6f 63 6b 20 |e.pop cd|.doLock |
|000034e0| 66 61 6c 73 65 0d 65 6e | 64 20 61 64 64 54 6f 4c |false.en|d addToL|
|000034f0| 69 73 74 0d 0d 0d 2d 2d | 2d 2d 2d 20 48 61 6e 64 |ist...--|--- Hand|
|00003500| 6c 65 72 73 20 66 6f 72 | 20 65 78 70 6f 72 74 69 |lers for| exporti|
|00003510| 6e 67 20 63 61 72 64 73 | 20 2d 2d 2d 2d 2d 0d 0d |ng cards| -----..|
|00003520| 6f 6e 20 65 78 70 6f 72 | 74 43 61 72 64 73 0d 67 |on expor|tCards.g|
|00003530| 6c 6f 62 61 6c 20 65 78 | 70 6f 72 74 46 69 6c 65 |lobal ex|portFile|
|00003540| 2c 20 6e 6f 6e 42 69 62 | 54 65 58 46 69 65 6c 64 |, nonBib|TeXField|
|00003550| 73 2c 20 6d 79 4e 6f 6e | 42 69 62 54 65 58 46 69 |s, myNon|BibTeXFi|
|00003560| 65 6c 64 73 2c 20 6c 61 | 73 74 4e 6f 6e 42 69 62 |elds, la|stNonBib|
|00003570| 54 65 58 46 69 65 6c 64 | 0d 73 65 6e 64 20 22 73 |TeXField|.send "s|
|00003580| 6f 72 74 43 61 72 64 73 | 20 74 72 75 65 22 20 74 |ortCards| true" t|
|00003590| 6f 20 62 67 20 22 48 42 | 20 55 74 69 6c 69 74 79 |o bg "HB| Utility|
|000035a0| 20 43 61 72 64 73 22 0d | 6c 6f 63 6b 20 73 63 72 | Cards".|lock scr|
|000035b0| 65 65 6e 0d 69 66 20 65 | 78 70 6f 72 74 46 69 6c |een.if e|xportFil|
|000035c0| 65 20 69 73 20 65 6d 70 | 74 79 20 74 68 65 6e 20 |e is emp|ty then |
|000035d0| 70 75 74 20 22 42 69 62 | 6c 69 6f 67 72 61 70 68 |put "Bib|liograph|
|000035e0| 79 2e 62 69 62 22 20 69 | 6e 74 6f 20 65 78 70 6f |y.bib" i|nto expo|
|000035f0| 72 74 46 69 6c 65 0d 65 | 6c 73 65 20 70 75 74 20 |rtFile.e|lse put |
|00003600| 6c 61 73 74 43 68 75 6e | 6b 28 22 3a 22 2c 65 78 |lastChun|k(":",ex|
|00003610| 70 6f 72 74 46 69 6c 65 | 29 20 69 6e 74 6f 20 65 |portFile|) into e|
|00003620| 78 70 6f 72 74 46 69 6c | 65 0d 61 6e 73 77 65 72 |xportFil|e.answer|
|00003630| 20 22 45 78 70 6f 72 74 | 20 77 68 69 63 68 20 63 | "Export| which c|
|00003640| 61 72 64 73 3f 22 20 77 | 69 74 68 20 22 43 61 6e |ards?" w|ith "Can|
|00003650| 63 65 6c 22 20 6f 72 20 | 22 4d 61 72 6b 65 64 22 |cel" or |"Marked"|
|00003660| 20 6f 72 20 22 41 6c 6c | 22 0d 69 66 20 69 74 20 | or "All|".if it |
|00003670| 69 73 20 22 43 61 6e 63 | 65 6c 22 20 74 68 65 6e |is "Canc|el" then|
|00003680| 20 65 78 69 74 20 65 78 | 70 6f 72 74 43 61 72 64 | exit ex|portCard|
|00003690| 73 0d 70 75 74 20 69 74 | 20 69 6e 74 6f 20 77 68 |s.put it| into wh|
|000036a0| 69 63 68 43 61 72 64 73 | 0d 70 75 74 20 22 53 65 |ichCards|.put "Se|
|000036b0| 6c 65 63 74 20 6e 6f 6e | 2d 42 69 62 54 65 58 20 |lect non|-BibTeX |
|000036c0| 66 69 65 6c 64 73 20 74 | 6f 20 65 78 70 6f 72 74 |fields t|o export|
|000036d0| 3a 22 20 69 6e 74 6f 20 | 70 72 6f 6d 70 74 0d 67 |:" into |prompt.g|
|000036e0| 65 74 20 73 68 6f 77 4c | 69 73 74 28 6e 6f 6e 42 |et showL|ist(nonB|
|000036f0| 69 62 54 65 58 46 69 65 | 6c 64 73 2c 70 72 6f 6d |ibTeXFie|lds,prom|
|00003700| 70 74 2c 74 72 75 65 2c | 74 72 75 65 2c 22 4f 4b |pt,true,|true,"OK|
|00003710| 2c 41 6c 6c 2c 4e 6f 6e | 65 2c 43 61 6e 63 65 6c |,All,Non|e,Cancel|
|00003720| 22 2c 6c 61 73 74 4e 6f | 6e 42 69 62 54 65 58 46 |",lastNo|nBibTeXF|
|00003730| 69 65 6c 64 29 0d 69 66 | 20 6c 69 6e 65 20 31 20 |ield).if| line 1 |
|00003740| 6f 66 20 69 74 20 69 73 | 20 22 43 61 6e 63 65 6c |of it is| "Cancel|
|00003750| 22 20 74 68 65 6e 20 65 | 78 69 74 20 65 78 70 6f |" then e|xit expo|
|00003760| 72 74 43 61 72 64 73 0d | 65 6c 73 65 20 69 66 20 |rtCards.|else if |
|00003770| 6c 69 6e 65 20 31 20 6f | 66 20 69 74 20 69 73 20 |line 1 o|f it is |
|00003780| 22 41 6c 6c 22 20 74 68 | 65 6e 20 70 75 74 20 6e |"All" th|en put n|
|00003790| 6f 6e 42 69 62 54 65 58 | 46 69 65 6c 64 73 20 69 |onBibTeX|Fields i|
|000037a0| 6e 74 6f 20 6d 79 4e 6f | 6e 42 69 62 54 65 58 46 |nto myNo|nBibTeXF|
|000037b0| 69 65 6c 64 73 0d 65 6c | 73 65 20 69 66 20 6c 69 |ields.el|se if li|
|000037c0| 6e 65 20 31 20 6f 66 20 | 69 74 20 69 73 20 22 4e |ne 1 of |it is "N|
|000037d0| 6f 6e 65 22 20 6f 72 20 | 6c 69 6e 65 20 32 20 6f |one" or |line 2 o|
|000037e0| 66 20 69 74 20 69 73 20 | 65 6d 70 74 79 20 74 68 |f it is |empty th|
|000037f0| 65 6e 20 70 75 74 20 65 | 6d 70 74 79 20 69 6e 74 |en put e|mpty int|
|00003800| 6f 20 6d 79 4e 6f 6e 42 | 69 62 54 65 58 46 69 65 |o myNonB|ibTeXFie|
|00003810| 6c 64 73 0d 65 6c 73 65 | 0d 70 75 74 20 74 68 65 |lds.else|.put the|
|00003820| 20 66 69 72 73 74 20 69 | 74 65 6d 20 69 6e 20 6c | first i|tem in l|
|00003830| 69 6e 65 20 32 20 6f 66 | 20 69 74 20 69 6e 74 6f |ine 2 of| it into|
|00003840| 20 6c 61 73 74 4e 6f 6e | 42 69 62 54 65 58 46 69 | lastNon|BibTeXFi|
|00003850| 65 6c 64 0d 70 75 74 20 | 65 6d 70 74 79 20 69 6e |eld.put |empty in|
|00003860| 74 6f 20 6d 79 4e 6f 6e | 42 69 62 54 65 58 46 69 |to myNon|BibTeXFi|
|00003870| 65 6c 64 73 0d 72 65 70 | 65 61 74 20 77 69 74 68 |elds.rep|eat with|
|00003880| 20 78 20 3d 20 31 20 74 | 6f 20 6e 75 6d 62 65 72 | x = 1 t|o number|
|00003890| 20 6f 66 20 69 74 65 6d | 73 20 69 6e 20 6c 69 6e | of item|s in lin|
|000038a0| 65 20 32 20 6f 66 20 69 | 74 0d 70 75 74 20 28 6c |e 2 of i|t.put (l|
|000038b0| 69 6e 65 20 28 69 74 65 | 6d 20 78 20 6f 66 20 6c |ine (ite|m x of l|
|000038c0| 69 6e 65 20 32 20 6f 66 | 20 69 74 29 20 6f 66 20 |ine 2 of| it) of |
|000038d0| 6e 6f 6e 42 69 62 54 65 | 58 46 69 65 6c 64 73 29 |nonBibTe|XFields)|
|000038e0| 26 72 65 74 75 72 6e 20 | 61 66 74 65 72 20 6d 79 |&return |after my|
|000038f0| 4e 6f 6e 42 69 62 54 65 | 58 46 69 65 6c 64 73 0d |NonBibTe|XFields.|
|00003900| 65 6e 64 20 72 65 70 65 | 61 74 0d 65 6e 64 20 69 |end repe|at.end i|
|00003910| 66 0d 61 73 6b 20 66 69 | 6c 65 20 22 45 78 70 6f |f.ask fi|le "Expo|
|00003920| 72 74 20 63 61 72 64 73 | 20 74 6f 20 77 68 61 74 |rt cards| to what|
|00003930| 20 66 69 6c 65 3a 22 20 | 77 69 74 68 20 65 78 70 | file:" |with exp|
|00003940| 6f 72 74 46 69 6c 65 0d | 69 66 20 69 74 20 69 73 |ortFile.|if it is|
|00003950| 20 65 6d 70 74 79 20 74 | 68 65 6e 20 65 78 69 74 | empty t|hen exit|
|00003960| 20 65 78 70 6f 72 74 43 | 61 72 64 73 0d 65 6c 73 | exportC|ards.els|
|00003970| 65 20 70 75 74 20 69 74 | 20 69 6e 74 6f 20 65 78 |e put it| into ex|
|00003980| 70 6f 72 74 46 69 6c 65 | 0d 75 6e 6c 6f 63 6b 20 |portFile|.unlock |
|00003990| 73 63 72 65 65 6e 20 2d | 2d 72 65 66 72 65 73 68 |screen -|-refresh|
|000039a0| 20 73 63 72 65 65 6e 0d | 64 69 73 61 6c 6c 6f 77 | screen.|disallow|
|000039b0| 49 6e 74 65 72 72 75 70 | 74 69 6f 6e 0d 64 6f 4c |Interrup|tion.doL|
|000039c0| 6f 63 6b 20 74 72 75 65 | 0d 73 65 74 20 63 75 72 |ock true|.set cur|
|000039d0| 73 6f 72 20 74 6f 20 77 | 61 74 63 68 0d 69 66 20 |sor to w|atch.if |
|000039e0| 77 68 69 63 68 43 61 72 | 64 73 20 69 73 20 22 41 |whichCar|ds is "A|
|000039f0| 6c 6c 22 20 74 68 65 6e | 20 65 78 70 6f 72 74 41 |ll" then| exportA|
|00003a00| 6c 6c 43 61 72 64 73 0d | 65 6c 73 65 20 69 66 20 |llCards.|else if |
|00003a10| 77 68 69 63 68 43 61 72 | 64 73 20 69 73 20 22 4d |whichCar|ds is "M|
|00003a20| 61 72 6b 65 64 22 20 74 | 68 65 6e 20 65 78 70 6f |arked" t|hen expo|
|00003a30| 72 74 4d 61 72 6b 65 64 | 43 61 72 64 73 0d 68 69 |rtMarked|Cards.hi|
|00003a40| 64 65 20 6d 73 67 0d 64 | 6f 4c 6f 63 6b 20 66 61 |de msg.d|oLock fa|
|00003a50| 6c 73 65 0d 61 6c 6c 6f | 77 49 6e 74 65 72 72 75 |lse.allo|wInterru|
|00003a60| 70 74 69 6f 6e 0d 65 6e | 64 20 65 78 70 6f 72 74 |ption.en|d export|
|00003a70| 43 61 72 64 73 0d 0d 6f | 6e 20 65 78 70 6f 72 74 |Cards..o|n export|
|00003a80| 41 6c 6c 43 61 72 64 73 | 0d 67 6c 6f 62 61 6c 20 |AllCards|.global |
|00003a90| 65 78 70 6f 72 74 46 69 | 6c 65 2c 20 65 78 70 61 |exportFi|le, expa|
|00003aa0| 6e 64 41 62 62 72 65 76 | 73 0d 70 75 73 68 20 63 |ndAbbrev|s.push c|
|00003ab0| 61 72 64 0d 70 75 74 20 | 28 74 68 65 20 6e 75 6d |ard.put |(the num|
|00003ac0| 62 65 72 20 6f 66 20 63 | 64 73 20 2d 20 28 6e 75 |ber of c|ds - (nu|
|00003ad0| 6d 62 65 72 20 6f 66 20 | 63 64 73 20 69 6e 20 62 |mber of |cds in b|
|00003ae0| 67 20 22 48 42 20 55 74 | 69 6c 69 74 79 20 43 61 |g "HB Ut|ility Ca|
|00003af0| 72 64 73 22 29 29 20 2d | 20 28 6e 75 6d 62 65 72 |rds")) -| (number|
|00003b00| 20 6f 66 20 63 64 73 20 | 69 6e 20 62 67 20 22 48 | of cds |in bg "H|
|00003b10| 42 20 54 69 74 6c 65 20 | 43 61 72 64 22 29 20 c2 |B Title |Card") .|
|00003b20| 0d 69 6e 74 6f 20 74 6f | 74 61 6c 43 61 72 64 73 |.into to|talCards|
|00003b30| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 6e 6f 74 |.if ther|e is not|
|00003b40| 20 61 20 77 69 6e 64 6f | 77 20 22 50 72 6f 6d 70 | a windo|w "Promp|
|00003b50| 74 6f 69 64 22 20 74 68 | 65 6e 20 50 72 6f 6d 70 |toid" th|en Promp|
|00003b60| 74 6f 69 64 0d 73 65 74 | 20 74 65 78 74 20 6f 66 |toid.set| text of|
|00003b70| 20 77 69 6e 64 6f 77 20 | 22 50 72 6f 6d 70 74 6f | window |"Prompto|
|00003b80| 69 64 22 20 74 6f 20 22 | 43 6c 69 63 6b 20 6d 6f |id" to "|Click mo|
|00003b90| 75 73 65 20 74 6f 20 69 | 6e 74 65 72 72 75 70 74 |use to i|nterrupt|
|00003ba0| 20 65 78 70 6f 72 74 69 | 6e 67 2e 22 0d 73 65 74 | exporti|ng.".set|
|00003bb0| 20 76 69 73 69 62 6c 65 | 20 6f 66 20 77 69 6e 64 | visible| of wind|
|00003bc0| 6f 77 20 22 50 72 6f 6d | 70 74 6f 69 64 22 20 74 |ow "Prom|ptoid" t|
|00003bd0| 6f 20 74 72 75 65 0d 6f | 70 65 6e 20 66 69 6c 65 |o true.o|pen file|
|00003be0| 20 65 78 70 6f 72 74 46 | 69 6c 65 0d 77 72 69 74 | exportF|ile.writ|
|00003bf0| 65 20 22 25 25 46 69 6c | 65 20 63 72 65 61 74 65 |e "%%Fil|e create|
|00003c00| 64 20 6f 6e 22 26 26 74 | 68 65 20 6c 6f 6e 67 20 |d on"&&t|he long |
|00003c10| 64 61 74 65 26 26 22 61 | 74 22 26 26 74 68 65 20 |date&&"a|t"&&the |
|00003c20| 74 69 6d 65 26 72 65 74 | 75 72 6e 20 74 6f 20 66 |time&ret|urn to f|
|00003c30| 69 6c 65 20 65 78 70 6f | 72 74 46 69 6c 65 0d 77 |ile expo|rtFile.w|
|00003c40| 72 69 74 65 20 22 25 25 | 22 26 74 6f 74 61 6c 43 |rite "%%|"&totalC|
|00003c50| 61 72 64 73 26 26 22 63 | 61 72 64 73 20 65 78 70 |ards&&"c|ards exp|
|00003c60| 6f 72 74 65 64 20 66 72 | 6f 6d 20 22 26 26 6e 61 |orted fr|om "&&na|
|00003c70| 6d 65 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |me of th|is stack|
|00003c80| 26 72 65 74 75 72 6e 26 | 72 65 74 75 72 6e 20 74 |&return&|return t|
|00003c90| 6f 20 66 69 6c 65 20 65 | 78 70 6f 72 74 46 69 6c |o file e|xportFil|
|00003ca0| 65 0d 69 66 20 65 78 70 | 61 6e 64 41 62 62 72 65 |e.if exp|andAbbre|
|00003cb0| 76 73 20 69 73 20 6e 6f | 74 20 74 72 75 65 20 74 |vs is no|t true t|
|00003cc0| 68 65 6e 20 65 78 70 6f | 72 74 41 62 62 72 65 76 |hen expo|rtAbbrev|
|00003cd0| 53 74 72 69 6e 67 73 0d | 67 6f 20 73 65 63 6f 6e |Strings.|go secon|
|00003ce0| 64 20 63 64 20 2d 2d 66 | 69 72 73 74 20 63 61 72 |d cd --f|irst car|
|00003cf0| 64 20 69 73 20 74 69 74 | 6c 65 20 63 61 72 64 0d |d is tit|le card.|
|00003d00| 72 65 70 65 61 74 20 77 | 69 74 68 20 63 61 72 64 |repeat w|ith card|
|00003d10| 43 6f 75 6e 74 20 3d 20 | 31 20 74 6f 20 74 6f 74 |Count = |1 to tot|
|00003d20| 61 6c 43 61 72 64 73 0d | 69 66 20 74 68 65 20 6d |alCards.|if the m|
|00003d30| 6f 75 73 65 43 6c 69 63 | 6b 20 74 68 65 6e 0d 62 |ouseClic|k then.b|
|00003d40| 65 65 70 0d 61 6e 73 77 | 65 72 20 22 53 74 6f 70 |eep.answ|er "Stop|
|00003d50| 20 65 78 70 6f 72 74 69 | 6e 67 20 63 61 72 64 73 | exporti|ng cards|
|00003d60| 3f 22 20 77 69 74 68 20 | 22 59 65 73 22 20 6f 72 |?" with |"Yes" or|
|00003d70| 20 22 4e 6f 22 0d 69 66 | 20 69 74 20 69 73 20 22 | "No".if| it is "|
|00003d80| 59 65 73 22 20 74 68 65 | 6e 20 65 78 69 74 20 72 |Yes" the|n exit r|
|00003d90| 65 70 65 61 74 0d 65 6e | 64 20 69 66 0d 70 75 74 |epeat.en|d if.put|
|00003da0| 20 22 45 78 70 6f 72 74 | 69 6e 67 20 63 61 72 64 | "Export|ing card|
|00003db0| 22 26 26 63 61 72 64 43 | 6f 75 6e 74 26 26 22 6f |"&&cardC|ount&&"o|
|00003dc0| 66 22 26 26 74 6f 74 61 | 6c 43 61 72 64 73 20 69 |f"&&tota|lCards i|
|00003dd0| 6e 74 6f 20 6d 73 67 0d | 65 78 70 6f 72 74 43 61 |nto msg.|exportCa|
|00003de0| 72 64 20 2d 2d 69 6e 20 | 62 67 20 73 63 72 69 70 |rd --in |bg scrip|
|00003df0| 74 20 6f 66 20 65 61 63 | 68 20 65 6e 74 72 79 20 |t of eac|h entry |
|00003e00| 74 79 70 65 0d 67 6f 20 | 74 6f 20 6e 65 78 74 20 |type.go |to next |
|00003e10| 63 61 72 64 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |card.end| repeat.|
|00003e20| 73 65 74 20 76 69 73 69 | 62 6c 65 20 6f 66 20 77 |set visi|ble of w|
|00003e30| 69 6e 64 6f 77 20 22 50 | 72 6f 6d 70 74 6f 69 64 |indow "P|romptoid|
|00003e40| 22 20 74 6f 20 66 61 6c | 73 65 0d 63 6c 6f 73 65 |" to fal|se.close|
|00003e50| 20 66 69 6c 65 20 65 78 | 70 6f 72 74 46 69 6c 65 | file ex|portFile|
|00003e60| 0d 70 6f 70 20 63 61 72 | 64 0d 65 6e 64 20 65 78 |.pop car|d.end ex|
|00003e70| 70 6f 72 74 41 6c 6c 43 | 61 72 64 73 0d 0d 6f 6e |portAllC|ards..on|
|00003e80| 20 65 78 70 6f 72 74 4d | 61 72 6b 65 64 43 61 72 | exportM|arkedCar|
|00003e90| 64 73 0d 67 6c 6f 62 61 | 6c 20 65 78 70 6f 72 74 |ds.globa|l export|
|00003ea0| 46 69 6c 65 0d 70 75 73 | 68 20 63 61 72 64 0d 72 |File.pus|h card.r|
|00003eb0| 65 70 65 61 74 20 77 69 | 74 68 20 78 20 3d 20 31 |epeat wi|th x = 1|
|00003ec0| 20 74 6f 20 28 6e 75 6d | 62 65 72 20 6f 66 20 63 | to (num|ber of c|
|00003ed0| 64 73 20 69 6e 20 62 67 | 20 22 48 42 20 55 74 69 |ds in bg| "HB Uti|
|00003ee0| 6c 69 74 79 20 43 61 72 | 64 73 22 29 0d 75 6e 6d |lity Car|ds").unm|
|00003ef0| 61 72 6b 20 63 64 20 78 | 20 6f 66 20 62 67 20 22 |ark cd x| of bg "|
|00003f00| 48 42 20 55 74 69 6c 69 | 74 79 20 43 61 72 64 73 |HB Utili|ty Cards|
|00003f10| 22 20 2d 2d 6a 75 73 74 | 20 74 6f 20 62 65 20 73 |" --just| to be s|
|00003f20| 61 66 65 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 75 |afe.end |repeat.u|
|00003f30| 6e 6d 61 72 6b 20 63 64 | 20 22 48 42 20 54 69 74 |nmark cd| "HB Tit|
|00003f40| 6c 65 20 43 61 72 64 22 | 20 20 2d 2d 54 69 74 6c |le Card"| --Titl|
|00003f50| 65 20 43 61 72 64 20 69 | 73 20 6e 65 76 65 72 20 |e Card i|s never |
|00003f60| 6d 61 72 6b 65 64 0d 70 | 75 74 20 28 74 68 65 20 |marked.p|ut (the |
|00003f70| 6e 75 6d 62 65 72 20 6f | 66 20 6d 61 72 6b 65 64 |number o|f marked|
|00003f80| 20 63 61 72 64 73 29 20 | 69 6e 74 6f 20 74 6f 74 | cards) |into tot|
|00003f90| 61 6c 43 61 72 64 73 0d | 69 66 20 74 68 65 72 65 |alCards.|if there|
|00003fa0| 20 69 73 20 6e 6f 74 20 | 61 20 77 69 6e 64 6f 77 | is not |a window|
|00003fb0| 20 22 50 72 6f 6d 70 74 | 6f 69 64 22 20 74 68 65 | "Prompt|oid" the|
|00003fc0| 6e 20 50 72 6f 6d 70 74 | 6f 69 64 0d 73 65 74 20 |n Prompt|oid.set |
|00003fd0| 74 65 78 74 20 6f 66 20 | 77 69 6e 64 6f 77 20 22 |text of |window "|
|00003fe0| 50 72 6f 6d 70 74 6f 69 | 64 22 20 74 6f 20 22 43 |Promptoi|d" to "C|
|00003ff0| 6c 69 63 6b 20 6d 6f 75 | 73 65 20 74 6f 20 69 6e |lick mou|se to in|
|00004000| 74 65 72 72 75 70 74 20 | 65 78 70 6f 72 74 69 6e |terrupt |exportin|
|00004010| 67 2e 22 0d 73 65 74 20 | 76 69 73 69 62 6c 65 20 |g.".set |visible |
|00004020| 6f 66 20 77 69 6e 64 6f | 77 20 22 50 72 6f 6d 70 |of windo|w "Promp|
|00004030| 74 6f 69 64 22 20 74 6f | 20 74 72 75 65 0d 6f 70 |toid" to| true.op|
|00004040| 65 6e 20 66 69 6c 65 20 | 65 78 70 6f 72 74 46 69 |en file |exportFi|
|00004050| 6c 65 0d 77 72 69 74 65 | 20 22 25 46 69 6c 65 20 |le.write| "%File |
|00004060| 63 72 65 61 74 65 64 20 | 6f 6e 22 26 26 74 68 65 |created |on"&&the|
|00004070| 20 6c 6f 6e 67 20 64 61 | 74 65 26 26 22 61 74 22 | long da|te&&"at"|
|00004080| 26 26 74 68 65 20 74 69 | 6d 65 26 72 65 74 75 72 |&&the ti|me&retur|
|00004090| 6e 20 74 6f 20 66 69 6c | 65 20 65 78 70 6f 72 74 |n to fil|e export|
|000040a0| 46 69 6c 65 0d 77 72 69 | 74 65 20 22 25 22 26 74 |File.wri|te "%"&t|
|000040b0| 6f 74 61 6c 43 61 72 64 | 73 26 26 22 63 61 72 64 |otalCard|s&&"card|
|000040c0| 73 20 65 78 70 6f 72 74 | 65 64 20 66 72 6f 6d 20 |s export|ed from |
|000040d0| 22 26 26 6e 61 6d 65 20 | 6f 66 20 74 68 69 73 20 |"&&name |of this |
|000040e0| 73 74 61 63 6b 26 72 65 | 74 75 72 6e 26 72 65 74 |stack&re|turn&ret|
|000040f0| 75 72 6e 20 74 6f 20 66 | 69 6c 65 20 65 78 70 6f |urn to f|ile expo|
|00004100| 72 74 46 69 6c 65 0d 69 | 66 20 65 78 70 61 6e 64 |rtFile.i|f expand|
|00004110| 41 62 62 72 65 76 73 20 | 69 73 20 6e 6f 74 20 74 |Abbrevs |is not t|
|00004120| 72 75 65 20 74 68 65 6e | 20 65 78 70 6f 72 74 41 |rue then| exportA|
|00004130| 62 62 72 65 76 53 74 72 | 69 6e 67 73 0d 67 6f 20 |bbrevStr|ings.go |
|00004140| 66 69 72 73 74 20 6d 61 | 72 6b 65 64 20 63 64 0d |first ma|rked cd.|
|00004150| 72 65 70 65 61 74 20 77 | 69 74 68 20 63 61 72 64 |repeat w|ith card|
|00004160| 43 6f 75 6e 74 20 3d 20 | 31 20 74 6f 20 74 6f 74 |Count = |1 to tot|
|00004170| 61 6c 43 61 72 64 73 0d | 69 66 20 74 68 65 20 6d |alCards.|if the m|
|00004180| 6f 75 73 65 43 6c 69 63 | 6b 20 74 68 65 6e 0d 62 |ouseClic|k then.b|
|00004190| 65 65 70 0d 61 6e 73 77 | 65 72 20 22 53 74 6f 70 |eep.answ|er "Stop|
|000041a0| 20 65 78 70 6f 72 74 69 | 6e 67 20 63 61 72 64 73 | exporti|ng cards|
|000041b0| 3f 22 20 77 69 74 68 20 | 22 59 65 73 22 20 6f 72 |?" with |"Yes" or|
|000041c0| 20 22 4e 6f 22 0d 69 66 | 20 69 74 20 69 73 20 22 | "No".if| it is "|
|000041d0| 59 65 73 22 20 74 68 65 | 6e 20 65 78 69 74 20 72 |Yes" the|n exit r|
|000041e0| 65 70 65 61 74 0d 65 6e | 64 20 69 66 0d 70 75 74 |epeat.en|d if.put|
|000041f0| 20 22 45 78 70 6f 72 74 | 69 6e 67 20 63 61 72 64 | "Export|ing card|
|00004200| 22 26 26 63 61 72 64 43 | 6f 75 6e 74 26 26 22 6f |"&&cardC|ount&&"o|
|00004210| 66 22 26 26 74 6f 74 61 | 6c 43 61 72 64 73 20 69 |f"&&tota|lCards i|
|00004220| 6e 74 6f 20 6d 73 67 0d | 65 78 70 6f 72 74 43 61 |nto msg.|exportCa|
|00004230| 72 64 20 2d 2d 69 6e 20 | 62 67 20 73 63 72 69 70 |rd --in |bg scrip|
|00004240| 74 20 6f 66 20 65 61 63 | 68 20 65 6e 74 72 79 20 |t of eac|h entry |
|00004250| 74 79 70 65 0d 67 6f 20 | 74 6f 20 6e 65 78 74 20 |type.go |to next |
|00004260| 6d 61 72 6b 65 64 20 63 | 61 72 64 0d 65 6e 64 20 |marked c|ard.end |
|00004270| 72 65 70 65 61 74 0d 73 | 65 74 20 76 69 73 69 62 |repeat.s|et visib|
|00004280| 6c 65 20 6f 66 20 77 69 | 6e 64 6f 77 20 22 50 72 |le of wi|ndow "Pr|
|00004290| 6f 6d 70 74 6f 69 64 22 | 20 74 6f 20 66 61 6c 73 |omptoid"| to fals|
|000042a0| 65 0d 63 6c 6f 73 65 20 | 66 69 6c 65 20 65 78 70 |e.close |file exp|
|000042b0| 6f 72 74 46 69 6c 65 0d | 70 6f 70 20 63 61 72 64 |ortFile.|pop card|
|000042c0| 0d 65 6e 64 20 65 78 70 | 6f 72 74 4d 61 72 6b 65 |.end exp|ortMarke|
|000042d0| 64 43 61 72 64 73 0d 0d | 2d 2d 72 65 63 6f 72 64 |dCards..|--record|
|000042e0| 20 6b 65 79 0d 66 75 6e | 63 74 69 6f 6e 20 65 78 | key.fun|ction ex|
|000042f0| 70 6f 72 74 4b 65 79 0d | 72 65 74 75 72 6e 20 66 |portKey.|return f|
|00004300| 69 72 73 74 43 68 75 6e | 6b 28 22 21 22 2c 66 6c |irstChun|k("!",fl|
|00004310| 64 20 22 4b 65 79 22 29 | 26 22 2c 22 26 72 65 74 |d "Key")|&","&ret|
|00004320| 75 72 6e 0d 65 6e 64 20 | 65 78 70 6f 72 74 4b 65 |urn.end |exportKe|
|00004330| 79 0d 0d 2d 2d 69 66 20 | 41 75 74 68 6f 72 20 66 |y..--if |Author f|
|00004340| 69 65 6c 64 20 69 73 20 | 65 6d 70 74 79 0d 66 75 |ield is |empty.fu|
|00004350| 6e 63 74 69 6f 6e 20 65 | 78 70 6f 72 74 4b 65 79 |nction e|xportKey|
|00004360| 46 69 65 6c 64 0d 72 65 | 74 75 72 6e 20 22 4b 45 |Field.re|turn "KE|
|00004370| 59 20 3d 20 22 26 71 75 | 6f 74 65 26 4c 61 73 74 |Y = "&qu|ote&Last|
|00004380| 43 68 75 6e 6b 28 22 21 | 22 2c 66 6c 64 20 22 4b |Chunk("!|",fld "K|
|00004390| 65 79 22 29 26 71 75 6f | 74 65 26 22 2c 22 26 72 |ey")&quo|te&","&r|
|000043a0| 65 74 75 72 6e 0d 65 6e | 64 20 65 78 70 6f 72 74 |eturn.en|d export|
|000043b0| 4b 65 79 46 69 65 6c 64 | 0d 0d 66 75 6e 63 74 69 |KeyField|..functi|
|000043c0| 6f 6e 20 65 78 70 6f 72 | 74 41 75 74 68 6f 72 46 |on expor|tAuthorF|
|000043d0| 69 65 6c 64 20 6c 61 62 | 65 6c 0d 67 6c 6f 62 61 |ield lab|el.globa|
|000043e0| 6c 20 65 78 70 61 6e 64 | 41 62 62 72 65 76 73 0d |l expand|Abbrevs.|
|000043f0| 67 65 74 20 66 6c 64 20 | 22 41 75 74 68 6f 72 22 |get fld |"Author"|
|00004400| 0d 69 66 20 69 73 41 62 | 62 72 65 76 28 69 74 29 |.if isAb|brev(it)|
|00004410| 20 69 73 20 74 72 75 65 | 20 74 68 65 6e 0d 69 66 | is true| then.if|
|00004420| 20 65 78 70 61 6e 64 41 | 62 62 72 65 76 73 20 69 | expandA|bbrevs i|
|00004430| 73 20 74 72 75 65 20 74 | 68 65 6e 20 72 65 74 75 |s true t|hen retu|
|00004440| 72 6e 20 6c 61 62 65 6c | 26 26 22 3d 22 26 26 71 |rn label|&&"="&&q|
|00004450| 75 6f 74 65 26 67 65 74 | 41 62 62 72 65 76 44 65 |uote&get|AbbrevDe|
|00004460| 66 28 22 41 75 74 68 6f | 72 22 2c 69 74 29 26 71 |f("Autho|r",it)&q|
|00004470| 75 6f 74 65 26 22 2c 22 | 26 72 65 74 75 72 6e 0d |uote&","|&return.|
|00004480| 65 6c 73 65 0d 64 65 6c | 65 74 65 20 66 69 72 73 |else.del|ete firs|
|00004490| 74 20 63 68 61 72 20 6f | 66 20 69 74 0d 72 65 74 |t char o|f it.ret|
|000044a0| 75 72 6e 20 6c 61 62 65 | 6c 26 26 22 3d 22 26 26 |urn labe|l&&"="&&|
|000044b0| 69 74 26 22 2c 22 26 72 | 65 74 75 72 6e 0d 65 6e |it&","&r|eturn.en|
|000044c0| 64 20 69 66 0d 65 6c 73 | 65 20 72 65 74 75 72 6e |d if.els|e return|
|000044d0| 20 6c 61 62 65 6c 26 26 | 22 3d 22 26 26 71 75 6f | label&&|"="&&quo|
|000044e0| 74 65 26 69 74 26 71 75 | 6f 74 65 26 22 2c 22 26 |te&it&qu|ote&","&|
|000044f0| 72 65 74 75 72 6e 0d 65 | 6e 64 20 65 78 70 6f 72 |return.e|nd expor|
|00004500| 74 41 75 74 68 6f 72 46 | 69 65 6c 64 0d 0d 66 75 |tAuthorF|ield..fu|
|00004510| 6e 63 74 69 6f 6e 20 65 | 78 70 6f 72 74 4b 65 79 |nction e|xportKey|
|00004520| 77 6f 72 64 73 46 69 65 | 6c 64 0d 67 6c 6f 62 61 |wordsFie|ld.globa|
|00004530| 6c 20 6d 79 4e 6f 6e 42 | 69 62 54 65 58 46 69 65 |l myNonB|ibTeXFie|
|00004540| 6c 64 73 2c 20 65 78 70 | 61 6e 64 41 62 62 72 65 |lds, exp|andAbbre|
|00004550| 76 73 0d 70 75 74 20 22 | 2c 22 20 69 6e 74 6f 20 |vs.put "|," into |
|00004560| 64 65 6c 69 6d 69 74 65 | 72 0d 69 66 20 22 4b 65 |delimite|r.if "Ke|
|00004570| 79 77 6f 72 64 73 22 20 | 69 73 20 69 6e 20 6d 79 |ywords" |is in my|
|00004580| 4e 6f 6e 42 69 62 54 65 | 58 46 69 65 6c 64 73 20 |NonBibTe|XFields |
|00004590| 61 6e 64 20 66 6c 64 20 | 22 4b 65 79 77 6f 72 64 |and fld |"Keyword|
|000045a0| 73 22 20 69 73 20 6e 6f | 74 20 65 6d 70 74 79 20 |s" is no|t empty |
|000045b0| 74 68 65 6e 0d 72 65 70 | 65 61 74 20 77 69 74 68 |then.rep|eat with|
|000045c0| 20 78 20 3d 20 31 20 74 | 6f 20 28 6e 75 6d 62 65 | x = 1 t|o (numbe|
|000045d0| 72 20 6f 66 20 6c 69 6e | 65 73 20 69 6e 20 66 6c |r of lin|es in fl|
|000045e0| 64 20 22 4b 65 79 77 6f | 72 64 73 22 29 0d 69 66 |d "Keywo|rds").if|
|000045f0| 20 69 73 41 62 62 72 65 | 76 28 6c 69 6e 65 20 78 | isAbbre|v(line x|
|00004600| 20 6f 66 20 66 6c 64 20 | 22 4b 65 79 77 6f 72 64 | of fld |"Keyword|
|00004610| 73 22 29 20 69 73 20 74 | 72 75 65 20 74 68 65 6e |s") is t|rue then|
|00004620| 0d 69 66 20 65 78 70 61 | 6e 64 41 62 62 72 65 76 |.if expa|ndAbbrev|
|00004630| 73 20 69 73 20 74 72 75 | 65 20 74 68 65 6e 20 70 |s is tru|e then p|
|00004640| 75 74 20 67 65 74 41 62 | 62 72 65 76 44 65 66 28 |ut getAb|brevDef(|
|00004650| 22 4b 65 79 77 6f 72 64 | 73 22 2c 6c 69 6e 65 20 |"Keyword|s",line |
|00004660| 78 20 6f 66 20 66 6c 64 | 20 22 4b 65 79 77 6f 72 |x of fld| "Keywor|
|00004670| 64 73 22 29 26 64 65 6c | 69 6d 69 74 65 72 20 61 |ds")&del|imiter a|
|00004680| 66 74 65 72 20 74 68 65 | 4b 65 79 77 6f 72 64 73 |fter the|Keywords|
|00004690| 0d 65 6c 73 65 20 70 75 | 74 20 28 6c 69 6e 65 20 |.else pu|t (line |
|000046a0| 78 20 6f 66 20 66 6c 64 | 20 22 4b 65 79 77 6f 72 |x of fld| "Keywor|
|000046b0| 64 73 22 29 26 64 65 6c | 69 6d 69 74 65 72 20 61 |ds")&del|imiter a|
|000046c0| 66 74 65 72 20 74 68 65 | 4b 65 79 77 6f 72 64 73 |fter the|Keywords|
|000046d0| 0d 2d 2d 61 62 62 72 65 | 76 69 61 74 69 6f 6e 73 |.--abbre|viations|
|000046e0| 20 69 6e 20 6b 65 79 77 | 6f 72 64 73 20 66 69 65 | in keyw|ords fie|
|000046f0| 6c 64 20 61 72 65 20 6e | 6f 74 20 73 75 70 70 6f |ld are n|ot suppo|
|00004700| 72 74 65 64 20 62 79 20 | 42 69 62 54 65 58 0d 65 |rted by |BibTeX.e|
|00004710| 6c 73 65 20 70 75 74 20 | 28 6c 69 6e 65 20 78 20 |lse put |(line x |
|00004720| 6f 66 20 66 6c 64 20 22 | 4b 65 79 77 6f 72 64 73 |of fld "|Keywords|
|00004730| 22 29 26 64 65 6c 69 6d | 69 74 65 72 20 61 66 74 |")&delim|iter aft|
|00004740| 65 72 20 74 68 65 4b 65 | 79 77 6f 72 64 73 0d 65 |er theKe|ywords.e|
|00004750| 6e 64 20 72 65 70 65 61 | 74 0d 64 65 6c 65 74 65 |nd repea|t.delete|
|00004760| 20 6c 61 73 74 20 63 68 | 61 72 20 6f 66 20 74 68 | last ch|ar of th|
|00004770| 65 4b 65 79 77 6f 72 64 | 73 20 20 2d 2d 6c 61 73 |eKeyword|s --las|
|00004780| 74 20 64 65 6c 69 6d 69 | 74 65 72 0d 72 65 74 75 |t delimi|ter.retu|
|00004790| 72 6e 20 22 4b 45 59 57 | 4f 52 44 53 22 26 26 22 |rn "KEYW|ORDS"&&"|
|000047a0| 3d 22 26 26 71 75 6f 74 | 65 26 74 68 65 4b 65 79 |="&&quot|e&theKey|
|000047b0| 77 6f 72 64 73 26 71 75 | 6f 74 65 26 22 2c 22 26 |words&qu|ote&","&|
|000047c0| 72 65 74 75 72 6e 0d 65 | 6c 73 65 20 72 65 74 75 |return.e|lse retu|
|000047d0| 72 6e 20 65 6d 70 74 79 | 0d 65 6e 64 20 65 78 70 |rn empty|.end exp|
|000047e0| 6f 72 74 4b 65 79 77 6f | 72 64 73 46 69 65 6c 64 |ortKeywo|rdsField|
|000047f0| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 65 78 70 6f 72 |..functi|on expor|
|00004800| 74 46 69 65 6c 64 20 66 | 6c 64 4e 61 6d 65 2c 20 |tField f|ldName, |
|00004810| 72 65 71 75 69 72 65 64 | 46 69 65 6c 64 0d 67 6c |required|Field.gl|
|00004820| 6f 62 61 6c 20 6e 6f 6e | 42 69 62 54 65 58 46 69 |obal non|BibTeXFi|
|00004830| 65 6c 64 73 2c 20 6d 79 | 4e 6f 6e 42 69 62 54 65 |elds, my|NonBibTe|
|00004840| 58 46 69 65 6c 64 73 2c | 20 65 78 70 61 6e 64 41 |XFields,| expandA|
|00004850| 62 62 72 65 76 73 0d 69 | 66 20 72 65 74 75 72 6e |bbrevs.i|f return|
|00004860| 26 66 6c 64 4e 61 6d 65 | 26 72 65 74 75 72 6e 20 |&fldName|&return |
|00004870| 69 73 20 69 6e 20 72 65 | 74 75 72 6e 26 6e 6f 6e |is in re|turn&non|
|00004880| 42 69 62 54 65 58 46 69 | 65 6c 64 73 26 72 65 74 |BibTeXFi|elds&ret|
|00004890| 75 72 6e 20 74 68 65 6e | 0d 69 66 20 72 65 74 75 |urn then|.if retu|
|000048a0| 72 6e 26 66 6c 64 4e 61 | 6d 65 26 72 65 74 75 72 |rn&fldNa|me&retur|
|000048b0| 6e 20 69 73 20 69 6e 20 | 72 65 74 75 72 6e 6d 79 |n is in |returnmy|
|000048c0| 4e 6f 6e 42 69 62 54 65 | 58 46 69 65 6c 64 73 26 |NonBibTe|XFields&|
|000048d0| 72 65 74 75 72 6e 20 c2 | 0d 61 6e 64 20 66 69 65 |return .|.and fie|
|000048e0| 6c 64 20 66 6c 64 4e 61 | 6d 65 20 69 73 20 6e 6f |ld fldNa|me is no|
|000048f0| 74 20 65 6d 70 74 79 20 | 74 68 65 6e 0d 67 65 74 |t empty |then.get|
|00004900| 20 66 6c 64 20 66 6c 64 | 4e 61 6d 65 0d 69 66 20 | fld fld|Name.if |
|00004910| 69 73 41 62 62 72 65 76 | 28 69 74 29 20 69 73 20 |isAbbrev|(it) is |
|00004920| 74 72 75 65 20 74 68 65 | 6e 0d 69 66 20 65 78 70 |true the|n.if exp|
|00004930| 61 6e 64 41 62 62 72 65 | 76 73 20 69 73 20 74 72 |andAbbre|vs is tr|
|00004940| 75 65 20 74 68 65 6e 20 | 72 65 74 75 72 6e 20 66 |ue then |return f|
|00004950| 6c 64 4e 61 6d 65 26 26 | 22 3d 22 26 26 71 75 6f |ldName&&|"="&&quo|
|00004960| 74 65 26 67 65 74 41 62 | 62 72 65 76 44 65 66 28 |te&getAb|brevDef(|
|00004970| 66 6c 64 4e 61 6d 65 2c | 69 74 29 26 71 75 6f 74 |fldName,|it)&quot|
|00004980| 65 26 22 2c 22 26 72 65 | 74 75 72 6e 0d 65 6c 73 |e&","&re|turn.els|
|00004990| 65 0d 64 65 6c 65 74 65 | 20 66 69 72 73 74 20 63 |e.delete| first c|
|000049a0| 68 61 72 20 6f 66 20 69 | 74 0d 72 65 74 75 72 6e |har of i|t.return|
|000049b0| 20 66 6c 64 4e 61 6d 65 | 26 26 22 3d 22 26 26 69 | fldName|&&"="&&i|
|000049c0| 74 26 22 2c 22 26 72 65 | 74 75 72 6e 0d 65 6e 64 |t&","&re|turn.end|
|000049d0| 20 69 66 0d 65 6c 73 65 | 20 72 65 74 75 72 6e 20 | if.else| return |
|000049e0| 66 6c 64 4e 61 6d 65 26 | 26 22 3d 22 26 26 71 75 |fldName&|&"="&&qu|
|000049f0| 6f 74 65 26 69 74 26 71 | 75 6f 74 65 26 22 2c 22 |ote&it&q|uote&","|
|00004a00| 26 72 65 74 75 72 6e 0d | 65 6e 64 20 69 66 0d 65 |&return.|end if.e|
|00004a10| 6c 73 65 20 69 66 20 72 | 65 71 75 69 72 65 64 46 |lse if r|equiredF|
|00004a20| 69 65 6c 64 20 69 73 20 | 74 72 75 65 20 6f 72 20 |ield is |true or |
|00004a30| 66 69 65 6c 64 20 66 6c | 64 4e 61 6d 65 20 69 73 |field fl|dName is|
|00004a40| 20 6e 6f 74 20 65 6d 70 | 74 79 20 74 68 65 6e 0d | not emp|ty then.|
|00004a50| 67 65 74 20 66 6c 64 20 | 66 6c 64 4e 61 6d 65 0d |get fld |fldName.|
|00004a60| 69 66 20 69 73 41 62 62 | 72 65 76 28 69 74 29 20 |if isAbb|rev(it) |
|00004a70| 69 73 20 74 72 75 65 20 | 74 68 65 6e 0d 69 66 20 |is true |then.if |
|00004a80| 65 78 70 61 6e 64 41 62 | 62 72 65 76 73 20 69 73 |expandAb|brevs is|
|00004a90| 20 74 72 75 65 20 74 68 | 65 6e 20 72 65 74 75 72 | true th|en retur|
|00004aa0| 6e 20 66 6c 64 4e 61 6d | 65 26 26 22 3d 22 26 26 |n fldNam|e&&"="&&|
|00004ab0| 71 75 6f 74 65 26 67 65 | 74 41 62 62 72 65 76 44 |quote&ge|tAbbrevD|
|00004ac0| 65 66 28 66 6c 64 4e 61 | 6d 65 2c 69 74 29 26 71 |ef(fldNa|me,it)&q|
|00004ad0| 75 6f 74 65 26 22 2c 22 | 26 72 65 74 75 72 6e 0d |uote&","|&return.|
|00004ae0| 65 6c 73 65 0d 64 65 6c | 65 74 65 20 66 69 72 73 |else.del|ete firs|
|00004af0| 74 20 63 68 61 72 20 6f | 66 20 69 74 0d 72 65 74 |t char o|f it.ret|
|00004b00| 75 72 6e 20 66 6c 64 4e | 61 6d 65 26 26 22 3d 22 |urn fldN|ame&&"="|
|00004b10| 26 26 69 74 26 22 2c 22 | 26 72 65 74 75 72 6e 0d |&&it&","|&return.|
|00004b20| 65 6e 64 20 69 66 0d 65 | 6c 73 65 20 72 65 74 75 |end if.e|lse retu|
|00004b30| 72 6e 20 66 6c 64 4e 61 | 6d 65 26 26 22 3d 22 26 |rn fldNa|me&&"="&|
|00004b40| 26 71 75 6f 74 65 26 69 | 74 26 71 75 6f 74 65 26 |&quote&i|t&quote&|
|00004b50| 22 2c 22 26 72 65 74 75 | 72 6e 0d 65 6c 73 65 20 |","&retu|rn.else |
|00004b60| 72 65 74 75 72 6e 20 65 | 6d 70 74 79 0d 65 6e 64 |return e|mpty.end|
|00004b70| 20 65 78 70 6f 72 74 46 | 69 65 6c 64 0d 0d 66 75 | exportF|ield..fu|
|00004b80| 6e 63 74 69 6f 6e 20 67 | 65 74 41 62 62 72 65 76 |nction g|etAbbrev|
|00004b90| 44 65 66 20 66 6c 64 4e | 61 6d 65 2c 20 74 68 65 |Def fldN|ame, the|
|00004ba0| 41 62 62 72 65 76 0d 69 | 66 20 66 6c 64 4e 61 6d |Abbrev.i|f fldNam|
|00004bb0| 65 20 69 73 20 22 41 75 | 74 68 6f 72 22 20 74 68 |e is "Au|thor" th|
|00004bc0| 65 6e 0d 70 75 74 20 28 | 63 64 20 66 6c 64 20 22 |en.put (|cd fld "|
|00004bd0| 41 75 74 68 6f 72 73 22 | 20 6f 66 20 63 64 20 22 |Authors"| of cd "|
|00004be0| 41 75 74 68 6f 72 73 22 | 20 6f 66 20 62 67 20 22 |Authors"| of bg "|
|00004bf0| 48 42 20 55 74 69 6c 69 | 74 79 20 43 61 72 64 73 |HB Utili|ty Cards|
|00004c00| 22 29 20 69 6e 74 6f 20 | 74 68 65 46 6c 64 0d 65 |") into |theFld.e|
|00004c10| 6c 73 65 20 69 66 20 66 | 6c 64 4e 61 6d 65 20 69 |lse if f|ldName i|
|00004c20| 73 20 69 6e 20 22 4a 6f | 75 72 6e 61 6c 2c 53 65 |s in "Jo|urnal,Se|
|00004c30| 72 69 65 73 2c 54 79 70 | 65 22 20 74 68 65 6e 0d |ries,Typ|e" then.|
|00004c40| 70 75 74 20 28 63 64 20 | 66 6c 64 20 22 4a 6f 75 |put (cd |fld "Jou|
|00004c50| 72 6e 61 6c 73 22 20 6f | 66 20 63 64 20 22 4a 6f |rnals" o|f cd "Jo|
|00004c60| 75 72 6e 61 6c 73 22 20 | 6f 66 20 62 67 20 22 48 |urnals" |of bg "H|
|00004c70| 42 20 55 74 69 6c 69 74 | 79 20 43 61 72 64 73 22 |B Utilit|y Cards"|
|00004c80| 29 20 69 6e 74 6f 20 74 | 68 65 46 6c 64 0d 65 6c |) into t|heFld.el|
|00004c90| 73 65 20 69 66 20 66 6c | 64 4e 61 6d 65 20 69 73 |se if fl|dName is|
|00004ca0| 20 69 6e 20 22 50 75 62 | 6c 69 73 68 65 72 2c 4f | in "Pub|lisher,O|
|00004cb0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 2c 49 6e 73 74 |rganizat|ion,Inst|
|00004cc0| 69 74 75 74 69 6f 6e 2c | 53 63 68 6f 6f 6c 22 20 |itution,|School" |
|00004cd0| 74 68 65 6e 0d 70 75 74 | 20 28 63 64 20 66 6c 64 |then.put| (cd fld|
|00004ce0| 20 22 50 75 62 6c 69 73 | 68 65 72 73 22 20 6f 66 | "Publis|hers" of|
|00004cf0| 20 63 64 20 22 50 75 62 | 6c 69 73 68 65 72 73 22 | cd "Pub|lishers"|
|00004d00| 20 6f 66 20 62 67 20 22 | 48 42 20 55 74 69 6c 69 | of bg "|HB Utili|
|00004d10| 74 79 20 43 61 72 64 73 | 22 29 20 69 6e 74 6f 20 |ty Cards|") into |
|00004d20| 74 68 65 46 6c 64 0d 65 | 6c 73 65 20 69 66 20 66 |theFld.e|lse if f|
|00004d30| 6c 64 4e 61 6d 65 20 69 | 73 20 22 4b 65 79 77 6f |ldName i|s "Keywo|
|00004d40| 72 64 73 22 20 74 68 65 | 6e 0d 70 75 74 20 28 63 |rds" the|n.put (c|
|00004d50| 64 20 66 6c 64 20 22 4b | 65 79 77 6f 72 64 73 22 |d fld "K|eywords"|
|00004d60| 20 6f 66 20 63 64 20 22 | 4b 65 79 77 6f 72 64 73 | of cd "|Keywords|
|00004d70| 22 20 6f 66 20 62 67 20 | 22 48 42 20 55 74 69 6c |" of bg |"HB Util|
|00004d80| 69 74 79 20 43 61 72 64 | 73 22 29 20 69 6e 74 6f |ity Card|s") into|
|00004d90| 20 74 68 65 46 6c 64 0d | 65 6c 73 65 20 72 65 74 | theFld.|else ret|
|00004da0| 75 72 6e 20 74 68 65 41 | 62 62 72 65 76 0d 70 75 |urn theA|bbrev.pu|
|00004db0| 74 20 73 65 61 72 63 68 | 28 74 68 65 46 6c 64 2c |t search|(theFld,|
|00004dc0| 74 68 65 41 62 62 72 65 | 76 26 22 3d 22 2c 66 61 |theAbbre|v&"=",fa|
|00004dd0| 6c 73 65 29 20 69 6e 74 | 6f 20 69 74 0d 69 66 20 |lse) int|o it.if |
|00004de0| 69 74 20 69 73 20 65 6d | 70 74 79 20 74 68 65 6e |it is em|pty then|
|00004df0| 20 72 65 74 75 72 6e 20 | 74 68 65 41 62 62 72 65 | return |theAbbre|
|00004e00| 76 0d 65 6c 73 65 20 70 | 75 74 20 6c 69 6e 65 20 |v.else p|ut line |
|00004e10| 28 66 69 72 73 74 20 69 | 74 65 6d 20 6f 66 20 69 |(first i|tem of i|
|00004e20| 74 29 20 6f 66 20 74 68 | 65 46 6c 64 20 69 6e 74 |t) of th|eFld int|
|00004e30| 6f 20 74 68 65 4c 69 6e | 65 0d 64 65 6c 65 74 65 |o theLin|e.delete|
|00004e40| 20 63 68 61 72 20 31 20 | 74 6f 20 6f 66 66 73 65 | char 1 |to offse|
|00004e50| 74 28 22 3d 22 2c 74 68 | 65 4c 69 6e 65 29 20 6f |t("=",th|eLine) o|
|00004e60| 66 20 74 68 65 4c 69 6e | 65 0d 64 65 6c 65 74 65 |f theLin|e.delete|
|00004e70| 20 66 69 72 73 74 20 63 | 68 61 72 20 6f 66 20 74 | first c|har of t|
|00004e80| 68 65 4c 69 6e 65 20 20 | 2d 2d 6f 70 65 6e 69 6e |heLine |--openin|
|00004e90| 67 20 73 74 72 69 6e 67 | 20 64 65 6c 69 6d 69 74 |g string| delimit|
|00004ea0| 65 72 2c 20 22 20 6f 72 | 20 7b 0d 64 65 6c 65 74 |er, " or| {.delet|
|00004eb0| 65 20 6c 61 73 74 20 63 | 68 61 72 20 6f 66 20 74 |e last c|har of t|
|00004ec0| 68 65 4c 69 6e 65 20 20 | 20 2d 2d 63 6c 6f 73 69 |heLine | --closi|
|00004ed0| 6e 67 20 73 74 72 69 6e | 67 20 64 65 6c 69 6d 69 |ng strin|g delimi|
|00004ee0| 74 65 72 2c 20 22 20 6f | 72 20 7d 0d 72 65 74 75 |ter, " o|r }.retu|
|00004ef0| 72 6e 20 74 68 65 4c 69 | 6e 65 0d 65 6e 64 20 67 |rn theLi|ne.end g|
|00004f00| 65 74 41 62 62 72 65 76 | 44 65 66 0d 0d 6f 6e 20 |etAbbrev|Def..on |
|00004f10| 65 78 70 6f 72 74 41 62 | 62 72 65 76 53 74 72 69 |exportAb|brevStri|
|00004f20| 6e 67 73 0d 67 6c 6f 62 | 61 6c 20 65 78 70 6f 72 |ngs.glob|al expor|
|00004f30| 74 46 69 6c 65 20 20 2d | 2d 61 73 73 75 6d 65 20 |tFile -|-assume |
|00004f40| 66 69 6c 65 20 69 73 20 | 6f 70 65 6e 0d 67 6f 20 |file is |open.go |
|00004f50| 63 64 20 22 41 75 74 68 | 6f 72 73 22 20 69 6e 20 |cd "Auth|ors" in |
|00004f60| 62 67 20 22 48 42 20 55 | 74 69 6c 69 74 79 20 43 |bg "HB U|tility C|
|00004f70| 61 72 64 73 22 0d 70 75 | 74 20 63 64 20 66 6c 64 |ards".pu|t cd fld|
|00004f80| 20 22 41 75 74 68 6f 72 | 73 22 20 69 6e 74 6f 20 | "Author|s" into |
|00004f90| 69 74 0d 77 72 69 74 65 | 41 62 62 72 65 76 53 74 |it.write|AbbrevSt|
|00004fa0| 72 69 6e 67 20 69 74 0d | 67 6f 20 63 64 20 22 4a |ring it.|go cd "J|
|00004fb0| 6f 75 72 6e 61 6c 73 22 | 20 69 6e 20 62 67 20 22 |ournals"| in bg "|
|00004fc0| 48 42 20 55 74 69 6c 69 | 74 79 20 43 61 72 64 73 |HB Utili|ty Cards|
|00004fd0| 22 0d 70 75 74 20 63 64 | 20 66 6c 64 20 22 4a 6f |".put cd| fld "Jo|
|00004fe0| 75 72 6e 61 6c 73 22 20 | 69 6e 74 6f 20 69 74 0d |urnals" |into it.|
|00004ff0| 77 72 69 74 65 41 62 62 | 72 65 76 53 74 72 69 6e |writeAbb|revStrin|
|00005000| 67 20 69 74 0d 67 6f 20 | 63 64 20 22 50 75 62 6c |g it.go |cd "Publ|
|00005010| 69 73 68 65 72 73 22 20 | 69 6e 20 62 67 20 22 48 |ishers" |in bg "H|
|00005020| 42 20 55 74 69 6c 69 74 | 79 20 43 61 72 64 73 22 |B Utilit|y Cards"|
|00005030| 0d 70 75 74 20 63 64 20 | 66 6c 64 20 22 50 75 62 |.put cd |fld "Pub|
|00005040| 6c 69 73 68 65 72 73 22 | 20 69 6e 74 6f 20 69 74 |lishers"| into it|
|00005050| 0d 77 72 69 74 65 41 62 | 62 72 65 76 53 74 72 69 |.writeAb|brevStri|
|00005060| 6e 67 20 69 74 0d 67 6f | 20 63 64 20 22 4b 65 79 |ng it.go| cd "Key|
|00005070| 77 6f 72 64 73 22 20 69 | 6e 20 62 67 20 22 48 42 |words" i|n bg "HB|
|00005080| 20 55 74 69 6c 69 74 79 | 20 43 61 72 64 73 22 0d | Utility| Cards".|
|00005090| 70 75 74 20 63 64 20 66 | 6c 64 20 22 4b 65 79 77 |put cd f|ld "Keyw|
|000050a0| 6f 72 64 73 22 20 69 6e | 74 6f 20 69 74 0d 77 72 |ords" in|to it.wr|
|000050b0| 69 74 65 41 62 62 72 65 | 76 53 74 72 69 6e 67 20 |iteAbbre|vString |
|000050c0| 69 74 0d 77 72 69 74 65 | 20 72 65 74 75 72 6e 20 |it.write| return |
|000050d0| 74 6f 20 66 69 6c 65 20 | 65 78 70 6f 72 74 46 69 |to file |exportFi|
|000050e0| 6c 65 20 20 2d 2d 62 6c | 61 6e 6b 20 6c 69 6e 65 |le --bl|ank line|
|000050f0| 20 62 65 66 6f 72 65 20 | 66 69 72 73 74 20 62 69 | before |first bi|
|00005100| 62 20 65 6e 74 72 79 0d | 65 6e 64 20 65 78 70 6f |b entry.|end expo|
|00005110| 72 74 41 62 62 72 65 76 | 53 74 72 69 6e 67 73 0d |rtAbbrev|Strings.|
|00005120| 0d 6f 6e 20 77 72 69 74 | 65 41 62 62 72 65 76 53 |.on writ|eAbbrevS|
|00005130| 74 72 69 6e 67 20 74 68 | 65 41 75 74 68 6f 72 69 |tring th|eAuthori|
|00005140| 74 79 4c 69 73 74 0d 67 | 6c 6f 62 61 6c 20 65 78 |tyList.g|lobal ex|
|00005150| 70 6f 72 74 46 69 6c 65 | 20 20 2d 2d 61 73 73 75 |portFile| --assu|
|00005160| 6d 65 20 66 69 6c 65 20 | 69 73 20 6f 70 65 6e 0d |me file |is open.|
|00005170| 70 75 74 20 73 65 61 72 | 63 68 28 74 68 65 41 75 |put sear|ch(theAu|
|00005180| 74 68 6f 72 69 74 79 4c | 69 73 74 2c 22 2e 22 2c |thorityL|ist,".",|
|00005190| 74 72 75 65 2c 61 6c 6c | 29 20 69 6e 74 6f 20 6c |true,all|) into l|
|000051a0| 69 6e 65 4c 69 73 74 0d | 72 65 70 65 61 74 20 77 |ineList.|repeat w|
|000051b0| 69 74 68 20 78 20 3d 20 | 31 20 74 6f 20 28 6e 75 |ith x = |1 to (nu|
|000051c0| 6d 62 65 72 20 6f 66 20 | 6c 69 6e 65 73 20 6f 66 |mber of |lines of|
|000051d0| 20 6c 69 6e 65 4c 69 73 | 74 29 0d 70 75 74 20 28 | lineLis|t).put (|
|000051e0| 6c 69 6e 65 20 28 69 74 | 65 6d 20 31 20 6f 66 20 |line (it|em 1 of |
|000051f0| 6c 69 6e 65 20 78 20 6f | 66 20 6c 69 6e 65 4c 69 |line x o|f lineLi|
|00005200| 73 74 29 20 6f 66 20 74 | 68 65 41 75 74 68 6f 72 |st) of t|heAuthor|
|00005210| 69 74 79 4c 69 73 74 29 | 20 69 6e 74 6f 20 74 68 |ityList)| into th|
|00005220| 65 41 62 62 72 65 76 53 | 74 72 69 6e 67 0d 64 65 |eAbbrevS|tring.de|
|00005230| 6c 65 74 65 20 66 69 72 | 73 74 20 63 68 61 72 20 |lete fir|st char |
|00005240| 6f 66 20 74 68 65 41 62 | 62 72 65 76 53 74 72 69 |of theAb|brevStri|
|00005250| 6e 67 20 20 2d 2d 74 68 | 65 20 64 6f 74 0d 77 72 |ng --th|e dot.wr|
|00005260| 69 74 65 20 22 40 73 74 | 72 69 6e 67 7b 22 26 74 |ite "@st|ring{"&t|
|00005270| 68 65 41 62 62 72 65 76 | 53 74 72 69 6e 67 26 22 |heAbbrev|String&"|
|00005280| 7d 22 26 72 65 74 75 72 | 6e 20 74 6f 20 66 69 6c |}"&retur|n to fil|
|00005290| 65 20 65 78 70 6f 72 74 | 46 69 6c 65 0d 65 6e 64 |e export|File.end|
|000052a0| 20 72 65 70 65 61 74 0d | 65 6e 64 20 77 72 69 74 | repeat.|end writ|
|000052b0| 65 41 62 62 72 65 76 53 | 74 72 69 6e 67 0d 0d 0d |eAbbrevS|tring...|
|000052c0| 2d 2d 2d 2d 2d 20 48 61 | 6e 64 6c 65 72 73 20 66 |----- Ha|ndlers f|
|000052d0| 6f 72 20 69 6d 70 6f 72 | 74 69 6e 67 20 65 6e 74 |or impor|ting ent|
|000052e0| 72 69 65 73 20 2d 2d 2d | 2d 2d 0d 0d 6f 6e 20 69 |ries ---|--..on i|
|000052f0| 6d 70 6f 72 74 45 6e 74 | 72 69 65 73 0d 67 6c 6f |mportEnt|ries.glo|
|00005300| 62 61 6c 20 69 6d 70 6f | 72 74 46 69 6c 65 2c 20 |bal impo|rtFile, |
|00005310| 74 68 65 49 6d 70 6f 72 | 74 65 64 45 6e 74 72 79 |theImpor|tedEntry|
|00005320| 0d 61 6e 73 77 65 72 20 | 66 69 6c 65 20 22 49 6d |.answer |file "Im|
|00005330| 70 6f 72 74 20 42 69 62 | 54 65 58 20 65 6e 74 72 |port Bib|TeX entr|
|00005340| 69 65 73 20 66 72 6f 6d | 20 77 68 61 74 20 66 69 |ies from| what fi|
|00005350| 6c 65 3a 22 20 6f 66 20 | 74 79 70 65 20 22 54 45 |le:" of |type "TE|
|00005360| 58 54 22 0d 69 66 20 74 | 68 65 20 72 65 73 75 6c |XT".if t|he resul|
|00005370| 74 20 69 73 20 22 43 61 | 6e 63 65 6c 22 20 6f 72 |t is "Ca|ncel" or|
|00005380| 20 69 74 20 69 73 20 65 | 6d 70 74 79 20 74 68 65 | it is e|mpty the|
|00005390| 6e 20 65 78 69 74 20 69 | 6d 70 6f 72 74 45 6e 74 |n exit i|mportEnt|
|000053a0| 72 69 65 73 0d 70 75 74 | 20 69 74 20 69 6e 74 6f |ries.put| it into|
|000053b0| 20 69 6d 70 6f 72 74 46 | 69 6c 65 0d 64 69 73 61 | importF|ile.disa|
|000053c0| 6c 6c 6f 77 49 6e 74 65 | 72 72 75 70 74 69 6f 6e |llowInte|rruption|
|000053d0| 0d 64 6f 4c 6f 63 6b 20 | 74 72 75 65 0d 75 6e 6c |.doLock |true.unl|
|000053e0| 6f 63 6b 20 73 63 72 65 | 65 6e 20 20 2d 2d 72 65 |ock scre|en --re|
|000053f0| 66 72 65 73 68 20 73 63 | 72 65 65 6e 0d 6c 6f 63 |fresh sc|reen.loc|
|00005400| 6b 20 73 63 72 65 65 6e | 0d 73 65 74 20 63 75 72 |k screen|.set cur|
|00005410| 73 6f 72 20 74 6f 20 77 | 61 74 63 68 0d 69 66 20 |sor to w|atch.if |
|00005420| 74 68 65 72 65 20 69 73 | 20 6e 6f 74 20 61 20 77 |there is| not a w|
|00005430| 69 6e 64 6f 77 20 22 50 | 72 6f 6d 70 74 6f 69 64 |indow "P|romptoid|
|00005440| 22 20 74 68 65 6e 20 50 | 72 6f 6d 70 74 6f 69 64 |" then P|romptoid|
|00005450| 0d 73 65 74 20 74 65 78 | 74 20 6f 66 20 77 69 6e |.set tex|t of win|
|00005460| 64 6f 77 20 22 50 72 6f | 6d 70 74 6f 69 64 22 20 |dow "Pro|mptoid" |
|00005470| 74 6f 20 22 43 6c 69 63 | 6b 20 6d 6f 75 73 65 20 |to "Clic|k mouse |
|00005480| 74 6f 20 69 6e 74 65 72 | 72 75 70 74 20 69 6d 70 |to inter|rupt imp|
|00005490| 6f 72 74 69 6e 67 2e 22 | 0d 73 65 74 20 76 69 73 |orting."|.set vis|
|000054a0| 69 62 6c 65 20 6f 66 20 | 77 69 6e 64 6f 77 20 22 |ible of |window "|
|000054b0| 50 72 6f 6d 70 74 6f 69 | 64 22 20 74 6f 20 74 72 |Promptoi|d" to tr|
|000054c0| 75 65 0d 70 75 74 20 65 | 6d 70 74 79 20 69 6e 74 |ue.put e|mpty int|
|000054d0| 6f 20 74 68 65 49 6d 70 | 6f 72 74 65 64 45 6e 74 |o theImp|ortedEnt|
|000054e0| 72 79 0d 70 75 74 20 65 | 6d 70 74 79 20 69 6e 74 |ry.put e|mpty int|
|000054f0| 6f 20 69 6e 63 6c 75 64 | 65 41 62 62 72 65 76 53 |o includ|eAbbrevS|
|00005500| 74 72 69 6e 67 73 0d 70 | 75 74 20 66 61 6c 73 65 |trings.p|ut false|
|00005510| 20 69 6e 74 6f 20 65 78 | 69 74 4c 6f 6f 70 0d 6f | into ex|itLoop.o|
|00005520| 70 65 6e 20 66 69 6c 65 | 20 69 6d 70 6f 72 74 46 |pen file| importF|
|00005530| 69 6c 65 0d 72 65 61 64 | 20 66 72 6f 6d 20 66 69 |ile.read| from fi|
|00005540| 6c 65 20 69 6d 70 6f 72 | 74 46 69 6c 65 20 75 6e |le impor|tFile un|
|00005550| 74 69 6c 20 22 40 22 20 | 2d 2d 73 74 61 72 74 20 |til "@" |--start |
|00005560| 6f 66 20 66 69 72 73 74 | 20 65 6e 74 72 79 0d 69 |of first| entry.i|
|00005570| 66 20 69 74 20 69 73 20 | 65 6d 70 74 79 20 74 68 |f it is |empty th|
|00005580| 65 6e 0d 70 75 74 20 74 | 72 75 65 20 69 6e 74 6f |en.put t|rue into|
|00005590| 20 65 78 69 74 4c 6f 6f | 70 20 20 2d 2d 6e 6f 20 | exitLoo|p --no |
|000055a0| 76 61 6c 69 64 20 65 6e | 74 72 69 65 73 20 69 6e |valid en|tries in|
|000055b0| 20 66 69 6c 65 0d 62 65 | 65 70 0d 61 6e 73 77 65 | file.be|ep.answe|
|000055c0| 72 20 22 4e 6f 20 76 61 | 6c 69 64 20 42 69 62 54 |r "No va|lid BibT|
|000055d0| 65 58 20 65 6e 74 72 69 | 65 73 20 69 6e 20 74 68 |eX entri|es in th|
|000055e0| 69 73 20 66 69 6c 65 2e | 22 0d 65 6e 64 20 69 66 |is file.|".end if|
|000055f0| 0d 72 65 70 65 61 74 20 | 75 6e 74 69 6c 20 65 78 |.repeat |until ex|
|00005600| 69 74 4c 6f 6f 70 0d 69 | 66 20 74 68 65 20 6d 6f |itLoop.i|f the mo|
|00005610| 75 73 65 43 6c 69 63 6b | 20 74 68 65 6e 0d 62 65 |useClick| then.be|
|00005620| 65 70 0d 61 6e 73 77 65 | 72 20 22 53 74 6f 70 20 |ep.answe|r "Stop |
|00005630| 69 6d 70 6f 72 74 69 6e | 67 20 65 6e 74 72 69 65 |importin|g entrie|
|00005640| 73 3f 22 20 77 69 74 68 | 20 22 59 65 73 22 20 6f |s?" with| "Yes" o|
|00005650| 72 20 22 4e 6f 22 0d 69 | 66 20 69 74 20 69 73 20 |r "No".i|f it is |
|00005660| 22 59 65 73 22 20 74 68 | 65 6e 20 65 78 69 74 20 |"Yes" th|en exit |
|00005670| 72 65 70 65 61 74 0d 65 | 6e 64 20 69 66 0d 2d 2d |repeat.e|nd if.--|
|00005680| 42 69 62 54 65 58 20 70 | 65 72 6d 69 74 73 20 28 |BibTeX p|ermits (|
|00005690| 29 20 61 73 20 6f 75 74 | 65 72 6d 6f 73 74 20 64 |) as out|ermost d|
|000056a0| 65 6c 69 6d 69 74 65 72 | 73 3b 20 48 79 70 65 72 |elimiter|s; Hyper|
|000056b0| 42 69 62 54 65 58 20 72 | 65 71 75 69 72 65 73 20 |BibTeX r|equires |
|000056c0| 7b 7d 0d 72 65 61 64 20 | 66 72 6f 6d 20 66 69 6c |{}.read |from fil|
|000056d0| 65 20 69 6d 70 6f 72 74 | 46 69 6c 65 20 75 6e 74 |e import|File unt|
|000056e0| 69 6c 20 22 7b 22 0d 69 | 66 20 69 74 20 69 73 20 |il "{".i|f it is |
|000056f0| 65 6d 70 74 79 20 74 68 | 65 6e 20 65 78 69 74 20 |empty th|en exit |
|00005700| 72 65 70 65 61 74 20 20 | 2d 2d 65 6e 64 20 6f 66 |repeat |--end of|
|00005710| 20 66 69 6c 65 20 6f 72 | 20 62 61 64 20 64 61 74 | file or| bad dat|
|00005720| 61 0d 69 66 20 69 74 20 | 63 6f 6e 74 61 69 6e 73 |a.if it |contains|
|00005730| 20 22 49 4e 42 4f 4f 4b | 22 20 74 68 65 6e 20 69 | "INBOOK|" then i|
|00005740| 6d 70 6f 72 74 4f 6e 65 | 20 22 49 6e 42 6f 6f 6b |mportOne| "InBook|
|00005750| 22 0d 65 6c 73 65 20 69 | 66 20 69 74 20 63 6f 6e |".else i|f it con|
|00005760| 74 61 69 6e 73 20 22 42 | 4f 4f 4b 4c 45 54 22 20 |tains "B|OOKLET" |
|00005770| 74 68 65 6e 20 69 6d 70 | 6f 72 74 4f 6e 65 20 22 |then imp|ortOne "|
|00005780| 42 6f 6f 6b 6c 65 74 22 | 0d 65 6c 73 65 20 69 66 |Booklet"|.else if|
|00005790| 20 69 74 20 63 6f 6e 74 | 61 69 6e 73 20 22 42 4f | it cont|ains "BO|
|000057a0| 4f 4b 22 20 74 68 65 6e | 20 69 6d 70 6f 72 74 4f |OK" then| importO|
|000057b0| 6e 65 20 22 42 6f 6f 6b | 22 0d 65 6c 73 65 20 69 |ne "Book|".else i|
|000057c0| 66 20 69 74 20 63 6f 6e | 74 61 69 6e 73 20 22 41 |f it con|tains "A|
|000057d0| 52 54 49 43 4c 45 22 20 | 74 68 65 6e 20 69 6d 70 |RTICLE" |then imp|
|000057e0| 6f 72 74 4f 6e 65 20 22 | 41 72 74 69 63 6c 65 22 |ortOne "|Article"|
|000057f0| 0d 65 6c 73 65 20 69 66 | 20 69 74 20 63 6f 6e 74 |.else if| it cont|
|00005800| 61 69 6e 73 20 22 49 4e | 43 4f 4c 4c 45 43 54 49 |ains "IN|COLLECTI|
|00005810| 4f 4e 22 20 74 68 65 6e | 20 69 6d 70 6f 72 74 4f |ON" then| importO|
|00005820| 6e 65 20 22 49 6e 43 6f | 6c 6c 65 63 74 69 6f 6e |ne "InCo|llection|
|00005830| 22 0d 65 6c 73 65 20 69 | 66 20 69 74 20 63 6f 6e |".else i|f it con|
|00005840| 74 61 69 6e 73 20 22 4d | 41 53 54 45 52 53 54 48 |tains "M|ASTERSTH|
|00005850| 45 53 49 53 22 20 74 68 | 65 6e 20 69 6d 70 6f 72 |ESIS" th|en impor|
|00005860| 74 4f 6e 65 20 22 4d 61 | 73 74 65 72 73 54 68 65 |tOne "Ma|stersThe|
|00005870| 73 69 73 22 0d 65 6c 73 | 65 20 69 66 20 69 74 20 |sis".els|e if it |
|00005880| 63 6f 6e 74 61 69 6e 73 | 20 22 50 48 44 54 48 45 |contains| "PHDTHE|
|00005890| 53 49 53 22 20 74 68 65 | 6e 20 69 6d 70 6f 72 74 |SIS" the|n import|
|000058a0| 4f 6e 65 20 22 50 68 44 | 54 68 65 73 69 73 22 0d |One "PhD|Thesis".|
|000058b0| 65 6c 73 65 20 69 66 20 | 69 74 20 63 6f 6e 74 61 |else if |it conta|
|000058c0| 69 6e 73 20 22 4d 41 4e | 55 41 4c 22 20 74 68 65 |ins "MAN|UAL" the|
|000058d0| 6e 20 69 6d 70 6f 72 74 | 4f 6e 65 20 22 4d 61 6e |n import|One "Man|
|000058e0| 75 61 6c 22 0d 65 6c 73 | 65 20 69 66 20 69 74 20 |ual".els|e if it |
|000058f0| 63 6f 6e 74 61 69 6e 73 | 20 22 54 45 43 48 52 45 |contains| "TECHRE|
|00005900| 50 4f 52 54 22 20 74 68 | 65 6e 20 69 6d 70 6f 72 |PORT" th|en impor|
|00005910| 74 4f 6e 65 20 22 54 65 | 63 68 52 65 70 6f 72 74 |tOne "Te|chReport|
|00005920| 22 0d 65 6c 73 65 20 69 | 66 20 69 74 20 63 6f 6e |".else i|f it con|
|00005930| 74 61 69 6e 73 20 22 55 | 4e 50 55 42 4c 49 53 48 |tains "U|NPUBLISH|
|00005940| 45 44 22 20 74 68 65 6e | 20 69 6d 70 6f 72 74 4f |ED" then| importO|
|00005950| 6e 65 20 22 55 6e 70 75 | 62 6c 69 73 68 65 64 22 |ne "Unpu|blished"|
|00005960| 0d 65 6c 73 65 20 69 66 | 20 69 74 20 63 6f 6e 74 |.else if| it cont|
|00005970| 61 69 6e 73 20 22 4d 49 | 53 43 22 20 74 68 65 6e |ains "MI|SC" then|
|00005980| 20 69 6d 70 6f 72 74 4f | 6e 65 20 22 4d 69 73 63 | importO|ne "Misc|
|00005990| 22 0d 65 6c 73 65 20 69 | 66 20 69 74 20 63 6f 6e |".else i|f it con|
|000059a0| 74 61 69 6e 73 20 22 49 | 4e 50 52 4f 43 45 45 44 |tains "I|NPROCEED|
|000059b0| 49 4e 47 53 22 20 74 68 | 65 6e 20 69 6d 70 6f 72 |INGS" th|en impor|
|000059c0| 74 4f 6e 65 20 22 49 6e | 50 72 6f 63 65 65 64 69 |tOne "In|Proceedi|
|000059d0| 6e 67 73 22 0d 65 6c 73 | 65 20 69 66 20 69 74 20 |ngs".els|e if it |
|000059e0| 63 6f 6e 74 61 69 6e 73 | 20 22 50 52 4f 43 45 45 |contains| "PROCEE|
|000059f0| 44 49 4e 47 53 22 20 74 | 68 65 6e 20 69 6d 70 6f |DINGS" t|hen impo|
|00005a00| 72 74 4f 6e 65 20 22 50 | 72 6f 63 65 65 64 69 6e |rtOne "P|roceedin|
|00005a10| 67 73 22 0d 65 6c 73 65 | 20 69 66 20 69 74 20 63 |gs".else| if it c|
|00005a20| 6f 6e 74 61 69 6e 73 20 | 22 53 54 52 49 4e 47 22 |ontains |"STRING"|
|00005a30| 20 74 68 65 6e 0d 69 66 | 20 69 6e 63 6c 75 64 65 | then.if| include|
|00005a40| 41 62 62 72 65 76 53 74 | 72 69 6e 67 73 20 69 73 |AbbrevSt|rings is|
|00005a50| 20 65 6d 70 74 79 20 74 | 68 65 6e 0d 61 6e 73 77 | empty t|hen.answ|
|00005a60| 65 72 20 22 44 6f 20 79 | 6f 75 20 77 61 6e 74 20 |er "Do y|ou want |
|00005a70| 74 6f 20 69 6d 70 6f 72 | 74 20 61 62 62 72 65 76 |to impor|t abbrev|
|00005a80| 69 61 74 69 6f 6e 20 73 | 74 72 69 6e 67 73 3f 22 |iation s|trings?"|
|00005a90| 20 77 69 74 68 20 22 4e | 6f 22 20 6f 72 20 22 59 | with "N|o" or "Y|
|00005aa0| 65 73 22 0d 69 66 20 69 | 74 20 69 73 20 22 4e 6f |es".if i|t is "No|
|00005ab0| 22 20 74 68 65 6e 20 70 | 75 74 20 66 61 6c 73 65 |" then p|ut false|
|00005ac0| 20 69 6e 74 6f 20 69 6e | 63 6c 75 64 65 41 62 62 | into in|cludeAbb|
|00005ad0| 72 65 76 53 74 72 69 6e | 67 73 0d 65 6c 73 65 20 |revStrin|gs.else |
|00005ae0| 70 75 74 20 74 72 75 65 | 20 69 6e 74 6f 20 69 6e |put true| into in|
|00005af0| 63 6c 75 64 65 41 62 62 | 72 65 76 53 74 72 69 6e |cludeAbb|revStrin|
|00005b00| 67 73 0d 75 6e 6c 6f 63 | 6b 20 73 63 72 65 65 6e |gs.unloc|k screen|
|00005b10| 20 20 2d 2d 72 65 66 72 | 65 73 68 20 73 63 72 65 | --refr|esh scre|
|00005b20| 65 6e 0d 6c 6f 63 6b 20 | 73 63 72 65 65 6e 0d 73 |en.lock |screen.s|
|00005b30| 65 74 20 63 75 72 73 6f | 72 20 74 6f 20 77 61 74 |et curso|r to wat|
|00005b40| 63 68 0d 65 6e 64 20 69 | 66 0d 72 65 61 64 20 66 |ch.end i|f.read f|
|00005b50| 72 6f 6d 20 66 69 6c 65 | 20 69 6d 70 6f 72 74 46 |rom file| importF|
|00005b60| 69 6c 65 20 75 6e 74 69 | 6c 20 22 40 22 0d 69 66 |ile unti|l "@".if|
|00005b70| 20 69 6e 63 6c 75 64 65 | 41 62 62 72 65 76 53 74 | include|AbbrevSt|
|00005b80| 72 69 6e 67 73 20 69 73 | 20 74 72 75 65 20 74 68 |rings is| true th|
|00005b90| 65 6e 0d 70 75 74 20 64 | 65 6c 65 74 65 43 6f 6d |en.put d|eleteCom|
|00005ba0| 6d 65 6e 74 73 28 69 74 | 29 20 69 6e 74 6f 20 74 |ments(it|) into t|
|00005bb0| 68 65 49 6d 70 6f 72 74 | 65 64 45 6e 74 72 79 0d |heImport|edEntry.|
|00005bc0| 69 6d 70 6f 72 74 41 62 | 62 72 65 76 53 74 72 69 |importAb|brevStri|
|00005bd0| 6e 67 0d 65 6e 64 20 69 | 66 0d 65 6c 73 65 20 72 |ng.end i|f.else r|
|00005be0| 65 61 64 20 66 72 6f 6d | 20 66 69 6c 65 20 69 6d |ead from| file im|
|00005bf0| 70 6f 72 74 46 69 6c 65 | 20 75 6e 74 69 6c 20 22 |portFile| until "|
|00005c00| 40 22 20 2d 2d 20 75 6e | 6b 6e 6f 77 6e 20 65 6e |@" -- un|known en|
|00005c10| 74 72 79 20 74 79 70 65 | 0d 65 6e 64 20 72 65 70 |try type|.end rep|
|00005c20| 65 61 74 0d 70 75 74 20 | 65 6d 70 74 79 20 69 6e |eat.put |empty in|
|00005c30| 74 6f 20 74 68 65 49 6d | 70 6f 72 74 65 64 45 6e |to theIm|portedEn|
|00005c40| 74 72 79 0d 73 65 74 20 | 76 69 73 69 62 6c 65 20 |try.set |visible |
|00005c50| 6f 66 20 77 69 6e 64 6f | 77 20 22 50 72 6f 6d 70 |of windo|w "Promp|
|00005c60| 74 6f 69 64 22 20 74 6f | 20 66 61 6c 73 65 0d 63 |toid" to| false.c|
|00005c70| 6c 6f 73 65 20 66 69 6c | 65 20 69 6d 70 6f 72 74 |lose fil|e import|
|00005c80| 46 69 6c 65 0d 68 69 64 | 65 20 6d 73 67 0d 67 6f |File.hid|e msg.go|
|00005c90| 20 66 69 72 73 74 0d 64 | 6f 4c 6f 63 6b 20 66 61 | first.d|oLock fa|
|00005ca0| 6c 73 65 0d 73 65 6e 64 | 20 6f 70 65 6e 43 61 72 |lse.send| openCar|
|00005cb0| 64 0d 73 65 6e 64 20 6f | 70 65 6e 42 61 63 6b 67 |d.send o|penBackg|
|00005cc0| 72 6f 75 6e 64 0d 69 66 | 20 69 6e 63 6c 75 64 65 |round.if| include|
|00005cd0| 41 62 62 72 65 76 53 74 | 72 69 6e 67 73 20 69 73 |AbbrevSt|rings is|
|00005ce0| 20 74 72 75 65 20 74 68 | 65 6e 20 61 6e 73 77 65 | true th|en answe|
|00005cf0| 72 20 22 49 6d 70 6f 72 | 74 65 64 20 61 62 62 72 |r "Impor|ted abbr|
|00005d00| 65 76 69 61 74 69 6f 6e | 22 c2 0d 26 26 22 73 74 |eviation|"..&&"st|
|00005d10| 72 69 6e 67 73 20 68 61 | 76 65 20 62 65 65 6e 20 |rings ha|ve been |
|00005d20| 70 6c 61 63 65 64 20 69 | 6e 20 74 68 65 20 41 75 |placed i|n the Au|
|00005d30| 74 68 6f 72 73 20 61 75 | 74 68 6f 72 69 74 79 20 |thors au|thority |
|00005d40| 6c 69 73 74 2e 22 0d 61 | 6c 6c 6f 77 49 6e 74 65 |list.".a|llowInte|
|00005d50| 72 72 75 70 74 69 6f 6e | 0d 73 65 6e 64 20 22 73 |rruption|.send "s|
|00005d60| 6f 72 74 43 61 72 64 73 | 20 74 72 75 65 22 20 74 |ortCards| true" t|
|00005d70| 6f 20 62 67 20 22 48 42 | 20 55 74 69 6c 69 74 79 |o bg "HB| Utility|
|00005d80| 20 43 61 72 64 73 22 0d | 65 6e 64 20 69 6d 70 6f | Cards".|end impo|
|00005d90| 72 74 45 6e 74 72 69 65 | 73 0d 0d 6f 6e 20 69 6d |rtEntrie|s..on im|
|00005da0| 70 6f 72 74 4f 6e 65 20 | 74 79 70 65 0d 67 6c 6f |portOne |type.glo|
|00005db0| 62 61 6c 20 69 6d 70 6f | 72 74 46 69 6c 65 2c 20 |bal impo|rtFile, |
|00005dc0| 74 68 65 49 6d 70 6f 72 | 74 65 64 45 6e 74 72 79 |theImpor|tedEntry|
|00005dd0| 0d 72 65 61 64 20 66 72 | 6f 6d 20 66 69 6c 65 20 |.read fr|om file |
|00005de0| 69 6d 70 6f 72 74 46 69 | 6c 65 20 75 6e 74 69 6c |importFi|le until|
|00005df0| 20 22 40 22 20 2d 2d 73 | 74 61 72 74 20 6f 66 20 | "@" --s|tart of |
|00005e00| 6e 65 78 74 20 65 6e 74 | 72 79 0d 70 75 74 20 64 |next ent|ry.put d|
|00005e10| 65 6c 65 74 65 43 6f 6d | 6d 65 6e 74 73 28 69 74 |eleteCom|ments(it|
|00005e20| 29 20 69 6e 74 6f 20 74 | 68 65 49 6d 70 6f 72 74 |) into t|heImport|
|00005e30| 65 64 45 6e 74 72 79 0d | 64 6f 20 6e 65 77 42 69 |edEntry.|do newBi|
|00005e40| 62 43 61 72 64 20 74 79 | 70 65 2c 20 74 72 75 65 |bCard ty|pe, true|
|00005e50| 0d 69 6d 70 6f 72 74 45 | 6e 74 72 79 20 2d 2d 69 |.importE|ntry --i|
|00005e60| 6e 20 62 67 20 73 63 72 | 69 70 74 20 6f 66 20 65 |n bg scr|ipt of e|
|00005e70| 61 63 68 20 65 6e 74 72 | 79 20 74 79 70 65 0d 65 |ach entr|y type.e|
|00005e80| 6e 64 20 69 6d 70 6f 72 | 74 4f 6e 65 0d 0d 66 75 |nd impor|tOne..fu|
|00005e90| 6e 63 74 69 6f 6e 20 64 | 65 6c 65 74 65 43 6f 6d |nction d|eleteCom|
|00005ea0| 6d 65 6e 74 73 20 63 6f | 6e 74 61 69 6e 65 72 0d |ments co|ntainer.|
|00005eb0| 70 75 74 20 31 20 69 6e | 74 6f 20 70 6f 73 0d 72 |put 1 in|to pos.r|
|00005ec0| 65 70 65 61 74 20 77 69 | 74 68 20 78 20 3d 20 31 |epeat wi|th x = 1|
|00005ed0| 20 74 6f 20 6e 75 6d 62 | 65 72 20 6f 66 20 6c 69 | to numb|er of li|
|00005ee0| 6e 65 73 20 69 6e 20 63 | 6f 6e 74 61 69 6e 65 72 |nes in c|ontainer|
|00005ef0| 0d 70 75 74 20 66 75 6c | 6c 4f 66 66 73 65 74 28 |.put ful|lOffset(|
|00005f00| 22 25 22 2c 6c 69 6e 65 | 20 78 20 6f 66 20 63 6f |"%",line| x of co|
|00005f10| 6e 74 61 69 6e 65 72 2c | 70 6f 73 29 20 69 6e 74 |ntainer,|pos) int|
|00005f20| 6f 20 70 6f 73 0d 69 66 | 20 70 6f 73 20 ad 20 30 |o pos.if| pos . 0|
|00005f30| 0d 74 68 65 6e 20 64 65 | 6c 65 74 65 20 63 68 61 |.then de|lete cha|
|00005f40| 72 20 70 6f 73 20 74 6f | 20 28 6c 65 6e 67 74 68 |r pos to| (length|
|00005f50| 20 6f 66 20 6c 69 6e 65 | 20 78 20 6f 66 20 63 6f | of line| x of co|
|00005f60| 6e 74 61 69 6e 65 72 29 | 20 6f 66 20 6c 69 6e 65 |ntainer)| of line|
|00005f70| 20 78 20 6f 66 20 63 6f | 6e 74 61 69 6e 65 72 0d | x of co|ntainer.|
|00005f80| 65 6e 64 20 72 65 70 65 | 61 74 0d 72 65 74 75 72 |end repe|at.retur|
|00005f90| 6e 20 63 6f 6e 74 61 69 | 6e 65 72 0d 65 6e 64 20 |n contai|ner.end |
|00005fa0| 64 65 6c 65 74 65 43 6f | 6d 6d 65 6e 74 73 0d 0d |deleteCo|mments..|
|00005fb0| 66 75 6e 63 74 69 6f 6e | 20 69 6d 70 6f 72 74 4b |function| importK|
|00005fc0| 65 79 0d 67 6c 6f 62 61 | 6c 20 74 68 65 49 6d 70 |ey.globa|l theImp|
|00005fd0| 6f 72 74 65 64 45 6e 74 | 72 79 0d 70 75 74 20 73 |ortedEnt|ry.put s|
|00005fe0| 70 61 63 65 26 74 61 62 | 26 72 65 74 75 72 6e 20 |pace&tab|&return |
|00005ff0| 69 6e 74 6f 20 77 68 69 | 74 65 73 70 61 63 65 0d |into whi|tespace.|
|00006000| 70 75 74 20 31 20 69 6e | 74 6f 20 78 0d 70 75 74 |put 1 in|to x.put|
|00006010| 20 63 68 61 72 20 78 20 | 6f 66 20 74 68 65 49 6d | char x |of theIm|
|00006020| 70 6f 72 74 65 64 45 6e | 74 72 79 20 69 6e 74 6f |portedEn|try into|
|00006030| 20 74 68 65 43 68 61 72 | 0d 70 75 74 20 65 6d 70 | theChar|.put emp|
|00006040| 74 79 20 69 6e 74 6f 20 | 74 68 65 4b 65 79 0d 72 |ty into |theKey.r|
|00006050| 65 70 65 61 74 20 75 6e | 74 69 6c 20 74 68 65 43 |epeat un|til theC|
|00006060| 68 61 72 20 69 73 20 6e | 6f 74 20 69 6e 20 77 68 |har is n|ot in wh|
|00006070| 69 74 65 73 70 61 63 65 | 0d 61 64 64 20 31 20 74 |itespace|.add 1 t|
|00006080| 6f 20 78 0d 70 75 74 20 | 63 68 61 72 20 78 20 6f |o x.put |char x o|
|00006090| 66 20 74 68 65 49 6d 70 | 6f 72 74 65 64 45 6e 74 |f theImp|ortedEnt|
|000060a0| 72 79 20 69 6e 74 6f 20 | 74 68 65 43 68 61 72 0d |ry into |theChar.|
|000060b0| 65 6e 64 20 72 65 70 65 | 61 74 0d 70 75 74 20 63 |end repe|at.put c|
|000060c0| 68 61 72 20 78 20 74 6f | 20 6f 66 66 73 65 74 28 |har x to| offset(|
|000060d0| 22 2c 22 2c 74 68 65 49 | 6d 70 6f 72 74 65 64 45 |",",theI|mportedE|
|000060e0| 6e 74 72 79 29 20 6f 66 | 20 74 68 65 49 6d 70 6f |ntry) of| theImpo|
|000060f0| 72 74 65 64 45 6e 74 72 | 79 20 69 6e 74 6f 20 74 |rtedEntr|y into t|
|00006100| 68 65 4b 65 79 0d 64 65 | 6c 65 74 65 20 6c 61 73 |heKey.de|lete las|
|00006110| 74 20 63 68 61 72 20 6f | 66 20 74 68 65 4b 65 79 |t char o|f theKey|
|00006120| 20 20 2d 2d 74 72 61 69 | 6c 69 6e 67 20 63 6f 6d | --trai|ling com|
|00006130| 6d 61 0d 72 65 74 75 72 | 6e 20 74 68 65 4b 65 79 |ma.retur|n theKey|
|00006140| 0d 65 6e 64 20 69 6d 70 | 6f 72 74 4b 65 79 0d 0d |.end imp|ortKey..|
|00006150| 66 75 6e 63 74 69 6f 6e | 20 69 6d 70 6f 72 74 4b |function| importK|
|00006160| 65 79 46 69 65 6c 64 0d | 70 75 74 20 69 6d 70 6f |eyField.|put impo|
|00006170| 72 74 46 69 65 6c 64 28 | 22 4b 65 79 22 29 20 69 |rtField(|"Key") i|
|00006180| 6e 74 6f 20 69 74 0d 69 | 66 20 69 74 20 69 73 20 |nto it.i|f it is |
|00006190| 6e 6f 74 20 65 6d 70 74 | 79 20 74 68 65 6e 20 72 |not empt|y then r|
|000061a0| 65 74 75 72 6e 20 22 21 | 22 26 69 74 0d 65 6c 73 |eturn "!|"&it.els|
|000061b0| 65 20 72 65 74 75 72 6e | 20 65 6d 70 74 79 0d 65 |e return| empty.e|
|000061c0| 6e 64 20 69 6d 70 6f 72 | 74 4b 65 79 46 69 65 6c |nd impor|tKeyFiel|
|000061d0| 64 0d 0d 66 75 6e 63 74 | 69 6f 6e 20 69 6d 70 6f |d..funct|ion impo|
|000061e0| 72 74 46 69 65 6c 64 20 | 66 6c 64 4e 61 6d 65 0d |rtField |fldName.|
|000061f0| 67 6c 6f 62 61 6c 20 74 | 68 65 49 6d 70 6f 72 74 |global t|heImport|
|00006200| 65 64 45 6e 74 72 79 0d | 70 75 74 20 73 70 61 63 |edEntry.|put spac|
|00006210| 65 26 74 61 62 26 72 65 | 74 75 72 6e 20 69 6e 74 |e&tab&re|turn int|
|00006220| 6f 20 77 68 69 74 65 73 | 70 61 63 65 0d 70 75 74 |o whites|pace.put|
|00006230| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 78 0d 70 75 | empty i|nto x.pu|
|00006240| 74 20 31 20 69 6e 74 6f | 20 78 6f 66 66 73 65 74 |t 1 into| xoffset|
|00006250| 0d 72 65 70 65 61 74 0d | 66 69 6e 64 49 6e 20 74 |.repeat.|findIn t|
|00006260| 68 65 49 6d 70 6f 72 74 | 65 64 45 6e 74 72 79 2c |heImport|edEntry,|
|00006270| 66 6c 64 4e 61 6d 65 2c | 78 6f 66 66 73 65 74 2c |fldName,|xoffset,|
|00006280| 66 61 6c 73 65 0d 69 66 | 20 74 68 65 20 72 65 73 |false.if| the res|
|00006290| 75 6c 74 20 69 73 20 22 | 30 2c 30 2c 30 2c 30 2c |ult is "|0,0,0,0,|
|000062a0| 30 22 20 74 68 65 6e 20 | 72 65 74 75 72 6e 20 65 |0" then |return e|
|000062b0| 6d 70 74 79 20 2d 2d 66 | 69 65 6c 64 20 6e 6f 74 |mpty --f|ield not|
|000062c0| 20 66 6f 75 6e 64 0d 69 | 66 20 63 68 61 72 20 28 | found.i|f char (|
|000062d0| 66 6f 75 72 74 68 20 69 | 74 65 6d 20 6f 66 20 74 |fourth i|tem of t|
|000062e0| 68 65 20 72 65 73 75 6c | 74 20 2d 20 31 29 20 6f |he resul|t - 1) o|
|000062f0| 66 20 74 68 65 49 6d 70 | 6f 72 74 65 64 45 6e 74 |f theImp|ortedEnt|
|00006300| 72 79 20 69 73 20 6e 6f | 74 20 69 6e 20 77 68 69 |ry is no|t in whi|
|00006310| 74 65 73 70 61 63 65 20 | 74 68 65 6e 0d 70 75 74 |tespace |then.put|
|00006320| 20 66 69 66 74 68 20 69 | 74 65 6d 20 6f 66 20 74 | fifth i|tem of t|
|00006330| 68 65 20 72 65 73 75 6c | 74 20 69 6e 74 6f 20 78 |he resul|t into x|
|00006340| 6f 66 66 73 65 74 0d 6e | 65 78 74 20 72 65 70 65 |offset.n|ext repe|
|00006350| 61 74 0d 65 6e 64 20 69 | 66 0d 70 75 74 20 66 69 |at.end i|f.put fi|
|00006360| 66 74 68 20 69 74 65 6d | 20 6f 66 20 74 68 65 20 |fth item| of the |
|00006370| 72 65 73 75 6c 74 20 2b | 20 31 20 69 6e 74 6f 20 |result +| 1 into |
|00006380| 78 0d 70 75 74 20 63 68 | 61 72 20 78 20 6f 66 20 |x.put ch|ar x of |
|00006390| 74 68 65 49 6d 70 6f 72 | 74 65 64 45 6e 74 72 79 |theImpor|tedEntry|
|000063a0| 20 69 6e 74 6f 20 74 68 | 65 43 68 61 72 0d 72 65 | into th|eChar.re|
|000063b0| 70 65 61 74 20 75 6e 74 | 69 6c 20 74 68 65 43 68 |peat unt|il theCh|
|000063c0| 61 72 20 69 73 20 6e 6f | 74 20 69 6e 20 77 68 69 |ar is no|t in whi|
|000063d0| 74 65 73 70 61 63 65 0d | 61 64 64 20 31 20 74 6f |tespace.|add 1 to|
|000063e0| 20 78 0d 70 75 74 20 63 | 68 61 72 20 78 20 6f 66 | x.put c|har x of|
|000063f0| 20 74 68 65 49 6d 70 6f | 72 74 65 64 45 6e 74 72 | theImpo|rtedEntr|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.